as.boot | R Documentation |
Convertion to boot object
as.boot(object, index)
## S3 method for class 'bootReg'
as.boot(object, index = NULL)
object |
a bootReg object |
index |
[optional] index of the observation to keep. |
#### data ####
n <- 1e2
set.seed(10)
df.data <- data.frame(Y = rnorm(n),
group = gl(3, 5, n, labels = c("Ctl","Trt","Neu")),
gender = gl(2, 5, n, labels = c("Female","Male"))[sample.int(n)]
)
#### lm ####
m.lm <- lm(Y ~ group*gender, data = df.data)
resBoot <- bootReg(m.lm, n.boot = 1e1)
as.boot(resBoot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.