📄 logistic.hlp
字号:
{smcl}
{* 09mar2005}{...}
{cmd:help logistic}{right:dialog: {bf:{dialog logistic}}{space 15}}
{right:also see: {help logistic postestimation}}
{hline}
{title:Title}
{p2colset 5 21 23 2}{...}
{p2col :{hi:[R] logistic} {hline 2}}Logistic regression, reporting odds ratios{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 18 2}
{cmd:logistic} {depvar} {indepvars} {ifin} {weight} [{cmd:,}
{it:options}]
{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}
{syntab :Model}
{synopt :{opth off:set(varname)}}include {it:varname} in model with coefficient
constrained to 1{p_end}
{synopt :{opt asis}}retain perfect predictor variables{p_end}
{syntab :SE/Robust}
{synopt :{opt 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 coef}}report estimated coefficients{p_end}
{syntab :Max options}
{synopt :{it:{help logistic##maximize_options:maximize_options}}}control the maximization process; seldom
used{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
{it:depvar} and {it:indepvars} may contain time-series operators;
see {help tsvarlist}.{p_end}
{p 4 6 2}
{cmd:bootstrap}, {cmd:by}, {cmd:jackknife}, {cmd:rolling}, {cmd:statsby},
{cmd:stepwise}, {cmd:svy}, and {cmd:xi} are allowed; see {help prefix}.{p_end}
{p 4 6 2}
{cmd:fweight}s, {cmd:iweight}s, and {cmd:pweight}s are allowed; see
{help weight}.{p_end}
{p 4 6 2}
See {help logistic postestimation} for features available after estimation.
{title:Description}
{pstd}
{cmd:logistic} fits a logistic regression model of {depvar} on {varlist},
where {it:depvar} is a 0/1 variable (or, more precisely, a 0/non-0 variable).
Without arguments, {cmd:logistic} redisplays the last {cmd:logistic}
estimates. {cmd:logistic} displays estimates as odds ratio; to view
coefficients, type {cmd:logit} after running {cmd:logistic}. To obtain odds
ratios for any covariate pattern relative to another, see {helpb lincom}.
{pstd}
See {help logistic estimation commands} for a list of related estimation
commands.
{title:Options for logistic}
{dlgtab:Model}
{phang}
{opth offset(varname)}; 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} (sic).
{dlgtab:SE/Robust}
{phang}
{opt vce(vcetype)}; see {it:{help vce_option}}.
{phang}
{opt robust}, {opth cluster(varname)}; see {help estimation options}.
{opt cluster()} can be used with {opt pweight}s to produce estimates for
unstratified cluster-sampled data, but see {helpb "svy: logistic"} for a
command especially designed for survey data.
{dlgtab:Reporting}
{phang}
{cmd:level(#)}; see {help estimation options}.
{phang}
{opt coef} causes {cmd:logistic} to report the estimated coefficients
rather than the odds ratios (exponentiated coefficients). {cmd:coef} may be
specified when the model is fitted or may be used later to redisplay results.
{cmd:coef} affects only how results are displayed and not how they are
estimated.
{marker maximize_options}{...}
{dlgtab:Max options}
{phang}
{it:maximize_options}: {opt iter:ate(#)}, {opt tol:erance(#)},
{opt ltol:erance(#)}; see {help maximize}. These options are seldom used.
{title:Example}
{phang}{cmd:. logistic low age lwt race2 race3 smoke ptl ht ui}
{title:Also see}
{psee}
Manual: {bf:[R] logistic}
{psee}
Online: {help logistic postestimation};{break}
{helpb brier}, {helpb clogit}, {helpb cloglog}, {helpb glm},
{helpb glogit}, {helpb ivprobit}, {helpb logit}, {helpb nlogit},
{helpb probit}, {helpb roctab}, {helpb scobit}, {helpb slogit},
{helpb "svy:logit"},
{helpb xtlogit}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -