📄 f_get.hlp
字号:
{smcl}
{* 10feb2005}{...}
{cmd:help get()}
{hline}
{title:Title}
{p2colset 5 23 25 2}{...}
{p2col :{hi:[P] matrix get} {hline 2}}Access system matrices{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 15 2}{cmdab:mat:rix} [{cmdab:def:ine}] {it:matname} {cmd:=}
{cmd:get(}{it:systemname}{cmd:)}
{pstd}
where {it:systemname} is
{p 8 17 2}{cmd:_b} {space 3} coefficients after estimation{p_end}
{p 8 17 2}{cmd:VCE} {space 2} covariance matrix of estimators after estimation{p_end}
{p 8 17 2}{cmd:Rr} {space 3} constraint matrix after {helpb test}{p_end}
{p 8 17 2}{cmd:Cns} {space 2} constraint matrix after estimation{p_end}
{title:Description}
{pstd}
The {cmd:get()} matrix function obtains a copy of an internal Stata system
matrix. Some system matrices can also be obtained more easily by directly
referring to the returned result after a command. In particular, the
coefficient vector can be referred to as {hi:e(b)} and the variance-covariance
matrix of estimators as {hi:e(V)} after an estimation command.
{pstd}
See {helpb mat_put_rr} for a programmer's command to directly post
{it:matname} as the internal {hi:Rr} matrix.
{title:Remarks}
{pstd}
{cmd:get()} obtains copies of matrices containing coefficients and the
covariance matrix of the estimators after estimation commands (such as
{cmd:regress}, {cmd:probit}, etc.) and obtains copies of matrices left behind
by other Stata commands. The other side of {cmd:get()} is {cmd:ereturn post},
which allows ado-file estimation commands to post results to Stata's internal
areas; see {helpb ereturn}.
{title:Examples}
{phang2}{cmd:. matrix coefs = get(_b)}{p_end}
{phang2}{cmd:. matrix V = get(VCE)}
{pstd}
Alternatively you could
{phang2}{cmd:. matrix coefs = e(b)}{p_end}
{phang2}{cmd:. matrix V = e(V)}
{title:Also see}
{psee}
Manual: {bf:[P] matrix get}
{psee}
Online: {helpb matrix}; {helpb ereturn}, {helpb mat_put_rr}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -