Description Usage Arguments Details Value Author(s) See Also Examples
Wrapper for automated backward elemination for logistic regression
1 |
formula |
passed to lrm |
data |
passed to lrm |
... |
passed to fastbw |
First run backward elemination via fastbw from the rms package, then fit the logistic regression model including the selected variables
object of class AutoSelectLRM
Thomas A. Gerds <tag@biostat.ku.dk>
fastbw lrm
1 2 3 4 5 6 | library(rms)
set.seed(7)
x <- abs(rnorm(20))
d <- data.frame(y=rbinom(20,1,x/max(x)),x=x,z=rnorm(20))
fbw <- AutoSelectLRM(y~x+z,d)
predictStatusProb(fbw,newdata=d[1:3,])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.