Learn R Programming

gausscov (version 0.1.8)

frasb: Robust selection of covariates using Huber's psi-function or Hampel's redescending psi-function based on all subsets

Description

Calculates all possible subsets and selects those where each included covariate is significant using a robustified version of fasb.R

Usage

frasb(y,x,cn=1,cnr=c(1,3,5),p0=0.01,q=-1,sg=0,ind=0,sel=T,inr=T,xinr=F,red=F)

Value

nv Coded list of subsets with number of covariates and scale ordered according to scale.

Arguments

y

The dependent variable

x

The covariates

cn

The constant for Huber's psi-function

cnr

The constants for for Hampel's three part redescending psi-function

p0

The P-value cut-off

q

If q>0 the number of covariates from which ind was chosen

sg

The scale parameter

ind

The subset for which the results are required

sel

Logical, if TRUE removes all subsets of chosen sets

inr

Logical if TRUE include intercept

xinr

Logical If TRUE intercept included in x

red

Logical If true Hampel's three part redescending psi function

Examples

Run this code
data(boston)
a<-frasb(boston[,14],boston[,1:8])
ind<-decode(235,8)

Run the code above in your browser using DataLab