Description Usage Arguments Value References Examples
View source: R/regression_functions.R
This function formats the rate constant data after the fir has been implemented using glmnet() from the glmnet library. Sometimes glmnet() produces less fits than requested based on the nlambda parameter. In such cases, get_rateConst() pads the parameter matrix with zeros such that the size of the matrix reflects the selection of nlambda.
1 | get_rateConst(fit = NULL, nlambda = NULL)
|
fit |
The beta values from the fit object generated by glmnet(). |
nlambda |
The number of lambda values. |
The rate constant matrix.
https://www.jstatsoft.org/article/view/v033i01
1 | rateConst = get_rateConst(fit$beta,nlambda)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.