boot.regL1 {diagL1} | R Documentation |
Bootstrapping Linear L1 Models
Description
This function can be used to construct standard errors, confidence intervals and tests of hypotheses regarding linear L1 regression models. The bootstrap method used compute xypairs bootstrap for linear L1 regression.
Usage
boot.regL1(x, y, R = 1000)
Arguments
x |
the regression design matrix. |
y |
the regression response vector. |
R |
the number of bootstrap replications. |
Value
A list consisting of four elements: a vector of lambda mle estimate for each bootstrap sample and another vector with empirical quantiles. A matrix B of dimension R by p is returned with the R resampled estimates of the vector of L1 linear regression parameters. A matrix U of sampled indices.
See Also
boot.rq
Bootstrapping Quantile Regression from package quantreg
.
Examples
data(stackloss)
bt1 = boot.regL1(stack.x, stack.loss, 1000)
plot(bt1$lambda_mle)
[Package diagL1 version 1.0.0 Index]