- 阅读权限
- 255
- 威望
- 13 级
- 论坛币
- 1100347 个
- 通用积分
- 78894.9668
- 学术水平
- 3454 点
- 热心指数
- 3913 点
- 信用等级
- 2749 点
- 经验
- 472847 点
- 帖子
- 11699
- 精华
- 5
- 在线时间
- 20307 小时
- 注册时间
- 2004-7-15
- 最后登录
- 2025-12-28
|
看sw命令的帮助或对应手册上解释
是不是pe选择
- [R] stepwise -- Stepwise estimation
- (View complete PDF manual entry)
- Syntax
- stepwise [, options] : command
- options Description
- -----------------------------------------------------------------------------------------
- Model
- * pr(#) significance level for removal from the model
- * pe(#) significance level for addition to the model
- Model2
- forward perform forward-stepwise selection
- hierarchical perform hierarchical selection
- lockterm1 keep the first term
- lr perform likelihood-ratio test instead of Wald test
- Reporting
- display_options control columns and column formats and line width
- -----------------------------------------------------------------------------------------
- * At least one of pr(#) or pe(#) must be specified.
- by and xi are allowed; see prefix.
- Weights are allowed if command allows them; see weight.
- All postestimation commands behave as they would after command without the stepwise
- prefix; see the postestimation manual entry for command.
- Menu
- Statistics > Other > Stepwise estimation
- Description
- stepwise performs stepwise estimation. Typing
- . stepwise, pr(#): command
- performs backward-selection estimation for command. The stepwise selection method is
- determined by the following option combinations:
- options Description
- -----------------------------------------------------------------------------------------
- pr(#) backward selection
- pr(#) hierarchical backward hierarchical selection
- pr(#) pe(#) backward stepwise
- pe(#) forward selection
- pe(#) hierarchical forward hierarchical selection
- pr(#) pe(#) forward forward stepwise
- -----------------------------------------------------------------------------------------
- command defines the estimation command to be executed. The following Stata commands are
- supported by stepwise.
- betareg, clogit, cloglog, glm, intreg, logistic, logit, nbreg, ologit, oprobit,
- poisson, probit, qreg, regress, scobit, stcox, stcrreg, stintreg, streg, tobit
- stepwise expects command to have the following form:
- command_name [depvar] term [term ...] [if] [in] [weight] [, command_options]
- where term is either varname or (varlist) (a varlist in parentheses indicates that this
- group of variables is to be included or excluded together). depvar is not present when
- command_name is stcox, stcrreg, stintreg, or streg; otherwise, depvar is assumed to be
- present. For intreg, depvar is actually two dependent variable names (depvar1 and
- depvar2).
- sw is a synonym for stepwise.
- Links to PDF documentation
- Quick start
- Remarks and examples
- Methods and formulas
- The above sections are not included in this help file.
- Options
- +-------+
- ----+ Model +----------------------------------------------------------------------------
- pr(#) specifies the significance level for removal from the model; terms with p>=pr() are
- eligible for removal.
- pe(#) specifies the significance level for addition to the model; terms with p<pe() are
- eligible for addition.
复制代码
|
|