stepwise
Interactive environment for stepwise regression
Syntax
stepwise(X,y)
stepwise(X,y,inmodel,penter,premove)
Description
stepwise(X,y) displays an interactive tool(交互工具) for creating a regression model (回归模型)to predict the vector y, using a subset of the predictors given by columns of the matrix X.
stepwise函数是一个交互工具,它使用矩阵X的列向量组成的子集来建立一个对y进行预测的回归模型。
Initially, no predictors are included in the model, but you can click predictors to switch them into and out of the model.
初始运算时没有X的列向量在模型中,但是可以通过选择列向量使它们加入或者剔除出模型。
For each predictor in the model, the interactive tool plots the predictor's least squares coefficient as a blue filled circle. For each predictor not in the model, the interactive tool plots a filled red circle to indicate the coefficient the predictor would have if you add it to the model.
对于模型中的每个变量,将它们的最小平方系数画成蓝色的实