matrix_score.hlp
来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· HLP 代码 · 共 75 行
HLP
75 行
{smcl}
{* 09feb2005}{...}
{cmd:help matrix score}
{hline}
{title:Title}
{p2colset 5 25 27 2}{...}
{p2col :{hi:[P] matrix score} {hline 2}}Score data from coefficient vectors{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 15 2}{cmdab:mat:rix} {cmdab:sco:re} {dtype} {newvar} {cmd:=} {it:b}
{ifin} [{cmd:,}
{cmdab:eq:uation:(}{cmd:#}{it:#}|{it:eqname}{cmd:)}
{cmdab:m:issval:(}{it:#}{cmd:)} {cmd:replace} {cmd:forcezero}]
{pstd}
where {it:b} is a 1 x p matrix.
{title:Description}
{pstd}
{cmd:matrix score} creates {newvar} = x{it:b}' ({it:b} a row vector)
where x is the row vector of values of the variables specified by the column
names of {it:b}. The name {hi:_cons} is treated as a variable equal to 1.
{title:Options}
{phang}
{cmd:equation(}{cmd:#}{it:#}|{it:eqname}{cmd:)} specifies the
equation{hline 2}by either number or name{hline 2}for selecting coefficients
from {it:b} to use in scoring. See {helpb matrix rownames} for
more information on equation labels with matrices.
{phang}
{cmd:missval(}{it:#}{cmd:)} specifies the value to be assumed if any
values are missing from the variables referenced by the coefficient vector.
By default, this value is taken to be missing (.), and any missing value among
the variables produces a missing score.
{phang}
{cmd:replace} specifies that {it:newvar} already exists. In this case,
observations not included by {cmd:if} {it:exp} and {cmd:in} {it:range} are
left unchanged; that is, they are not changed to missing. Be warned that
{cmd:replace} does not promote the storage type of the existing variable; if
the variable was an {cmd:int}, the calculated scores would be truncated to
integers when stored.
{phang}
{cmd:forcezero} specifies that, should a variable described by the column
names of {it:b} not exist, the calculation treats the missing variable
as if it did exist and was equal to zero for all observations. In other
words, it contributes nothing to the summation. By default, a missing
variable would produce an error message.
{title:Example}
{phang}{cmd:. matrix score index = coefs}
{title:Also see}
{psee}
Manual: {bf:[P] matrix score}
{psee}
Online: {helpb matrix}
{p_end}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?