boot | R Documentation |
A simple parametric bootstrap algorithm for location-scale regression models
from the lmls()
function.
boot(m, num_samples = 1000, seed = NULL)
m |
A location-scale regression model from the |
num_samples |
The number of bootstrap samples to draw. |
seed |
Either |
An lmls
S3 object, see lmls()
. The entry boot
with the matrices of
bootstrap samples is added to the object as a list with the names location
and scale
.
library(lmls)
m <- lmls(y ~ poly(x, 2), ~ x, data = abdom, light = FALSE)
m <- boot(m)
summary(m, type = "boot")
hist(m$boot$scale[, 2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.