get_rateConst: Get rate constants

Description Usage Arguments Value References Examples

View source: R/regression_functions.R

Description

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.

Usage

1
get_rateConst(fit = NULL, nlambda = NULL)

Arguments

fit

The beta values from the fit object generated by glmnet().

nlambda

The number of lambda values.

Value

The rate constant matrix.

References

https://www.jstatsoft.org/article/view/v033i01

Examples

1
rateConst = get_rateConst(fit$beta,nlambda)

WarrenDavidAnderson/dynamicNetworkID documentation built on May 23, 2019, 4:23 p.m.