📄 mf_st_viewvars.hlp
字号:
{smcl}
{* 28mar2005}{...}
{cmd:help mata st_viewvars()}
{hline}
{* index view matrix}{...}
{* index st_viewvars()}{...}
{* index st_viewobs()}{...}
{title:Title}
{p 4 4 2}
{bf:[M-5] st_viewvars() -- Variables and observations of view}
{title:Syntax}
{p 8 12 2}
{it:real rowvector}
{cmd:st_viewvars(}{it:matrix V}{cmd:)}
{p 8 12 2}
{it:real matrix}{bind: }
{cmd:st_viewobs(}{it:matrix V}{cmd:)}
{p 4 8 2}
where {it:V} is required to be a view.
{title:Description}
{p 4 4 2}
{cmd:st_viewvars(}{it:V}{cmd:)}
returns the indices of the Stata variables corresponding to the
columns of {it:V}.
{p 4 4 2}
{cmd:st_viewobs(}{it:V}{cmd:)}
returns the Stata observation numbers corresponding to the rows of
{it:V}. Returned is either a 1 {it:x} 2 rowvector recording the observation
range, or an {it:N x} 1 colvector recording the individual observation numbers.
{title:Remarks}
{p 4 4 2}
The results returned by these two functions are suitable for
inclusion as arguments in subsequent calls to
{bf:{help mf_st_view:[M-5] st_view()}}
and
{bf:{help mf_st_view:st_sview()}}.
{title:Conformability}
{cmd:st_viewvars(}{it:V}{cmd:)}
{it:V}: {it:N x k}
{it:result}: 1 {it:x k}
{cmd:st_viewobs(}{it:V}{cmd:)}
{it:V}: {it:N x k}
{it:result}: 1 {it:x} 2 or {it:N x} 1
{title:Diagnostics}
{p 4 4 2}
{cmd:st_viewvars(}{it:V}{cmd:)}
and
{cmd:st_viewobs(}{it:V}{cmd:)}
abort with error if {cmd:V} is not a view.
{title:Source code}
{p 4 4 2}
Functions are built-in.
{title:Also see}
{p 4 13 2}
Manual: {hi:[M-5] st_viewvars()}
{p 4 13 2}
Online: help for
{bf:{help mf_st_view:[M-5] st_view()}};
{bf:{help m4_stata:[M-4] stata}}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -