Learn R Programming

gausscov (version 0.1.1)

f2st: Repeated stepwise selection of covariates

Description

Repeated stepwise selection of covariates

Usage

f2st(y,x,p0=0.01,nu=1,km=0,mx=21,kx=0,lm=9^9,sub=F,inr=T,xinr=F)

Arguments

y

Dependent variable

x

Covariates

p0

The P-value cut-off

nu

The order statistic of Gaussian covariates used for comparison

km

The maximum number of included covariates at each stage irrespective of P-value

mx

The maximum number of covariates for an all subset search

kx

The excluded covariates

lm

The maximum number of linear approximations

sub

Logical if TRUE choose the best subset

inr

Logical if TRUE include intercept

xinr

Logical if TRUE intercept already included

Value

pv In order, the number of linear approximation, the included covariates, the P-values, sum of squared residuals .

Examples

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

Run the code above in your browser using DataLab