Description Usage Arguments Examples
Internal function that performs 1 step of forward stability selection. Returns a table of selection counts.
1 2 3 4 5 6 7 8 9 10 11 | boot.select.gen(
resp.name,
c.vars,
myframe,
type,
r,
f,
model,
fun.args,
pred.args
)
|
resp.name |
matrix of MPS data |
c.vars |
matrix of MPS data |
myframe |
data.frame holding explanatory and response data |
type |
'reg' or 'class' for regression and classification. Not needed if 'f' is specified. |
r |
maximum cell count |
f |
loss function |
model |
name of modeling method; must be name of the function called in R |
fun.args |
list of arguments that are passed to modeling function |
pred.args |
list of arguments that are passed to model predict function |
1 2 3 4 5 6 7 8 9 | library(MASS)
n<-100
p<-10
x<-mvrnorm(n,rep(0,p),diag(p))
signal<-rowSums(x[,1:3])
noise<-rnorm(n,0,1/4)
y<-signal+noise
mydata<-data.frame(x,y)
boot.select.gen(resp.name='y',c.vars=NULL,myframe=mydata,B=100,model='lm')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.