ml_score.hlp

来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· HLP 代码 · 共 106 行

HLP
106
字号
{smcl}
{* 03apr2005}{...}
{cmd:help ml score}{...}
{right:also see:  {help ml}}
{hline}

{title:Title}

{pstd}
{hi:ml score} {hline 2}
Generating scores after maximum-likelihood estimation


{title:Syntax}

{pstd}
Syntax for the scores from a specified equation:

{pmore}
{cmd:ml} {cmd:score} {newvar} {ifin}
	[{cmd:,}
		{opt eq:uation(eqname)}
		{opt force:scores}
	]


{pstd}
Syntax for the scores from all equations:

{pmore}
{cmd:ml} {cmd:score} {it:newvarlist} {ifin}

{pmore}
{cmd:ml} {cmd:score} [{it:type}] {it:stub}{cmd:*} {ifin}


{title:Description}

{pstd}
{cmd:ml} {cmd:score} creates new variables containing the observation level
contributions to the score.  The variables generated by {cmd:ml} {cmd:score}
are equivalent to those generated by specifying the {opt score()} to {cmd:ml}
{cmd:maximize} (and {cmd:ml} {cmd:model} ... {cmd:,} ... {cmd:maximize}).


{title:Options}

{phang}
{opt equation(eqname)} identifies which equation the observation scores are
to come from.  This option may only be used when generating a single variable.

{phang}
{opt forcescores} causes {cmd:ml} {cmd:score} to generate scores from results
generated from methods {cmd:d1} and {cmd:d2} even though the estimation
command does not have the {cmd:ml_score} property.


{title:Remarks}

{pstd}
{cmd:ml} {cmd:score} is always allowed when used after estimation commands
that use method {cmd:lf} likelihood evaluators.

{pstd}
{cmd:ml} {cmd:score} requires the estimation command to have "ml_score" as a
property if it uses method {cmd:d1} or {cmd:d2} likelihood evaluators.  This
will only work properly if the likelihood evaluator returns scores.

{pstd}
It is an error to call {cmd:ml} {cmd:score} after estimation commands that do
not use method {cmd:lf}, {cmd:d1}, or {cmd:d2} likelihood evaluators.


{title:Examples}

{pstd}
Single equation model:{p_end}

{phang}{cmd:. poisson accidents}{p_end}
{phang}{cmd:. ml score score}{p_end}

{pstd}
Two equation model (generates variables {cmd:sc_1} and {cmd:sc_2}):{p_end}

{phang}{cmd:. nbreg deaths coh2 coh3, exposure(obstime)}{p_end}
{phang}{cmd:. ml score sc_*}{p_end}

{pmore}
or

{phang}{cmd:. nbreg deaths coh2 coh3, exposure(obstime)}{p_end}
{phang}{cmd:. ml score sc_1, equation(#1)}{p_end}
{phang}{cmd:. ml score sc_2, equation(#2)}{p_end}


{title:Also see}

{psee}
Manual:  {hi:[R] ml}

{psee}
Online:  help for
{help ml},
{help predict}
{p_end}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?