powered by
Simple linear regression estimators for slope, intercept and noise standard deviation with absolute value penalty on slope.
microLASSO(x, y, lambda)
a list consisting of
a numeric vector containing intercept and slope estimates
a numeric constant containing the (penalized) maximum likelihood estimate of the noise standard deviation
a numeric vector of covariate values
a numeric vector of response values
a numeric constant which should be nonnegative
x <- runif(30) y <- x + rnorm(30) microLASSO(x, y, lambda = 0.5)
Run the code above in your browser using DataLab