Stepwise selection of covariates
f1st(y,x,p0=0.01,nu=1,km=0,mx=20,kx=0,sub=F,inr=T,xinr=F)
Dependent variable
Covariates
The P-value cut-off
The order statistic of Gaussian covariates used for comparison
The maximum number of included covariates
The maximum number covariates for an all subset search
The excluded covariates
Logical if TRUE best subset selected.to include intercept
Logical if TRUE include intercept if not present
Logical if TRUE intercept already presentt
pv The selected covariates in order together with P-values, sum of squared residuals and if appropriate number of misclassifications.
res The residuals
stpv The stepwise P-values and the sum of squared residuals
# NOT RUN { data(boston) bostint<-fgeninter(boston[,1:13],2)[[1]] a<-f1st(boston[,14],bostint,km=10,sub=TRUE,inr=FALSE,xinr=TRUE) # }
Run the code above in your browser using DataLab