microLASSO | R Documentation |
Simple linear regression estimators for slope, intercept and noise standard deviation with absolute value penalty on slope.
microLASSO(x, y, lambda)
x |
a numeric vector of covariate values |
y |
a numeric vector of response values |
lambda |
a numeric constant which should be nonnegative |
a list consisting of
Coefficients |
a numeric vector containing intercept and slope estimates |
RMSE |
a numeric constant containing the (penalized) maximum likelihood estimate of the noise standard deviation |
x <- runif(30)
y <- x + rnorm(30)
microLASSO(x, y, lambda = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.