boot {lmls} | R Documentation |
Parametric bootstrap for LMLS
Description
A simple parametric bootstrap algorithm for location-scale regression models
from the lmls()
function.
Usage
boot(m, num_samples = 1000, seed = NULL)
Arguments
m |
A location-scale regression model from the |
num_samples |
The number of bootstrap samples to draw. |
seed |
Either |
Value
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
.
Examples
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])
[Package lmls version 0.1.0 Index]