gausscov (version 0.0.4)

frst: Robust stepwise selection of covariates

Description

Robust stepwise selection of covariates

Usage

frst(y,x,cn=1,p0=0.01,sg=0,nu=1,km=0,mx=20,kx=0,sb=F,of=T,xof=F)

Arguments

y

Dependent variable

x

Covariates

cn

Parameter for Huber's psi-function

p0

The P-value cut-off

sg

Scale value of residuals

nu

The order for calculating the P-value

km

The maximum number of included covariates

mx

The maximum number of included covariates if the option subset =TRUE is used

kx

The excluded covariates

sb

Logical, if TRUE best subset selected

of

Logical TRUE to include intercept

xof

Logical TRUE if intercept already included

Value

pv In order the subset ind, the regression coefficients, the P-values, the standard P-values.

res The residuals

stpv The stepwise regression results: covariate, P-value and scale

Examples

Run this code
# NOT RUN {
data(boston)
a<-frst(boston[,14],boston[,1:13])
# }

Run the code above in your browser using DataLab