glogit.hlp

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

HLP
243
字号
{smcl}
{* 08mar2005}{...}
{cmd:help blogit}, {cmd:help bprobit},{right:dialogs:  {bf:{dialog blogit}}  {bf:{dialog bprobit}}{space 6}}
{cmd:help glogit}, {cmd:help gprobit}{right:{bf:{dialog glogit}}  {bf:{dialog gprobit}}{space 6}}
{right:also see:  {help glogit postestimation}}
{hline}

{title:Title}

{p2colset 5 19 21 2}{...}
{p2col :{hi:[R] glogit} {hline 2}}Logit and probit estimation for grouped data{p_end}
{p2colreset}{...}


{title:Syntax}

{phang}
Logistic regression for grouped data

{p 8 16 2}{cmd:blogit}{space 2}{it:pos_var} {it:pop_var} [{it:rhsvars}]
		{ifin} [{cmd:,}
		{it:{help glogit##blogit_options:blogit_options}}]

{phang}
Probit regression for grouped data

{p 8 16 2}{cmd:bprobit} {it:pos_var} {it:pop_var} [{it:rhsvars}]
		{ifin} [{cmd:,}
		{it:{help glogit##bprobit_options:bprobit_options}}]

{phang}
Weighted least-squares logistic regression for grouped data

{p 8 16 2}{cmd:glogit}{space 2}{it:pos_var} {it:pop_var} [{it:rhsvars}]
		{ifin} [{cmd:,} {opth vce(vcetype)} {opt l:evel(#)} {opt or}]

{phang}
Weighted least-squares probit regression for grouped data

{p 8 16 2}{cmd:gprobit} {it:pos_var} {it:pop_var} [{it:rhsvars}]
		{ifin} [{cmd:,} {opth vce(vcetype)} {opt l:evel(#)}]

{synoptset 20 tabbed}{...}
{marker blogit_options}{...}
{synopthdr :blogit_options}
{synoptline}
{syntab :Model}
{synopt :{opt nocon:stant}}suppress constant term{p_end}
{synopt :{opt asis}}retain perfect predictor variables{p_end}
{synopt :{opth off:set(varname)}}include {it:varname} in model with coefficient
constrained to 1{p_end}

{syntab :SE/Robust}
{synopt :{opth vce(vcetype)}}{it:vcetype} may be {opt r:obust}, {opt boot:strap},
or {opt jack:knife}{p_end}
{synopt :{opt r:obust}}synonym for {cmd:vce(robust)}{p_end}
{synopt :{opth cl:uster(varname)}}adjust standard errors for intragroup
correlation{p_end}

{syntab :Reporting}
{synopt :{opt l:evel(#)}}set confidence level; default is
{cmd:level(95)}{p_end}
{synopt :{opt or}}report odds ratios{p_end}

{syntab :Max options}
{synopt :{it:{help glogit##maximize_options:maximize_options}}}control the maximization process; seldom
used{p_end}

{p2coldent :+ {opt nocoe:f}}do not display coefficient table; seldom
used{p_end}
{synoptline}
{p2colreset}{...}

{synoptset 20 tabbed}{...}
{marker bprobit_options}{...}
{synopthdr :bprobit_options}
{synoptline}
{syntab :Model}
{synopt :{opt nocon:stant}}suppress constant term{p_end}
{synopt :{opt asis}}retain perfect predictor variables{p_end}
{synopt :{opth off:set(varname)}}include {it:varname} in model with coefficient
constrained to 1{p_end}

{syntab :SE/Robust}
{synopt :{opth vce(vcetype)}}{it:vcetype} may be {opt r:obust}, {opt boot:strap},
or {opt jack:knife}{p_end}
{synopt :{opt r:obust}}synonym for {cmd:vce(robust)}{p_end}
{synopt :{opth cl:uster(varname)}}adjust standard errors for intragroup
correlation{p_end}

{syntab :Reporting}
{synopt :{opt l:evel(#)}}set confidence level; default is {cmd:level(95)}{p_end}

{syntab :Max options}
{synopt :{it:{help glogit##maximize_options:maximize_options}}}control the maximization process; seldom used{p_end}

{p2coldent :+ {opt nocoe:f}}do not display coefficient table; seldom
used{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
+{opt nocoef} does not appear in the dialog box.{p_end}
{p 4 6 2}
{opt bootstrap}, {opt by}, {opt jackknife}, {opt rolling}, {opt statsby}, and
{opt xi} are allowed; see {help prefix}.{p_end}
{p 4 6 2}
See {help glogit postestimation}
for features available after estimation.{p_end}


{title:Description}

{pstd}
{cmd:blogit} and {cmd:bprobit} produce maximum-likelihood logit and probit
estimates on grouped ("blocked") data; {cmd:glogit} and {cmd:gprobit} produce
weighted least-squares estimates.  In the syntax diagrams, {it:pos_var} and
{it:pop_var} refer to variables containing the total number of positive
responses and the total population.

{pstd}
See {help logistic estimation commands} for a list of related estimation
commands.


{title:Options for blogit and bprobit}

{dlgtab:Model}

{phang}
{opt noconstant}; see {help estimation options}.

{phang}
{opt asis} forces retention of perfect predictor variables and their
associated perfectly predicted observations and may produce instabilities in
maximization; see {helpb probit}.

{phang}
{opth offset(varname)}; see {help estimation options}.

{dlgtab:SE/Robust}

{phang}
{opt vce(vcetype)}; see {it:{help vce_option}}.

{phang}
{opt robust}, {opth cluster(varname)}; see
{help estimation options}.
See {helpb logistic} for examples using {opt robust} and {opt cluster()}.

{dlgtab:Reporting}

{phang}
{opt level(#)}; see {help estimation options}.

{phang}
{opt or} ({opt blogit} only) reports the estimated coefficients transformed to
odds ratios, i.e., e^b rather than b.
Standard errors and confidence intervals
are similarly transformed.  This option affects how results are displayed, not
how they are estimated.  {opt or} may be specified at estimation or when
replaying previously estimated results.

{marker maximize_options}{...}
{dlgtab:Max options}

{phang}
{it:maximize_options}: {opt iter:ate(#)}, [{cmdab:no:}]{opt lo:g},
{opt tr:ace}, {opt tol:erance(#)}, {opt ltol:erance(#)}; see {help maximize}.
These options are seldom used.

{pstd}
The following option is available with {opt blogit} and {opt bprobit} but is
not shown in the dialog box:

{phang}
{opt nocoef} specifies that the coefficient table not be displayed.  This
option is sometimes used by program writers but is of no use interactively.


{title:Options for glogit}

{dlgtab:SE/Robust}

{phang}
{opt vce(vcetype)}; see {it:{help vce_option}}.
{it:vcetype} may be either {opt jackknife} or {opt bootstrap}.

{dlgtab:Reporting}

{phang}
{opt level(#)}; see {help estimation options}.

{phang}
{opt or} reports the estimated coefficients transformed to
odds ratios, i.e., e^b rather than b.
Standard errors and confidence intervals
are similarly transformed.  This option affects how results are displayed, not
how they are estimated.  {opt or} may be specified at estimation or when
replaying previously estimated results.


{title:Options for gprobit}

{dlgtab:SE/Robust}

{phang}
{opt vce(vcetype)}; see {it:{help vce_option}}.
{it:vcetype} may be either {opt jackknife} or {opt bootstrap}.

{dlgtab:Reporting}

{phang}
{opt level(#)}; see {help estimation options}.


{title:Examples}

{p 4 8 2}{cmd:. blogit deaths pop agecat exposed}{p_end}
{p 4 8 2}{cmd:. blogit deaths pop agecat exposed, or}

{p 4 8 2}{cmd:. glogit deaths pop agecat expose}{p_end}
{p 4 8 2}{cmd:. glogit deaths pop agecat expose, or}

{p 4 8 2}{cmd:. bprobit deaths pop agecat exposed}


{title:Also see}

{psee}
Manual:  {bf:[R] glogit}

{psee}
Online:  {help glogit postestimation};{break}
{helpb clogit},
{helpb cloglog},
{helpb logistic},
{helpb logit},
{helpb mlogit},
{helpb ologit},
{helpb probit},
{helpb scobit}
{p_end}

⌨️ 快捷键说明

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