Description Usage Arguments Value
Use a dynamic tuning parameter algorithm to generate lambads and taus in penalized likelihood estimation of the ZINB model.
1 2 3 |
y |
zero-inflated count response |
X |
covariate matrix. Intercept is added within the function. This could take '1' as the input which indicates an intercept-only model. |
nlambda |
number of unique lambda and tau values - default are 30 and 5. |
ntau |
number of unique lambda and tau values - default are 30 and 5. |
unpenalizedx |
Additional unpenalized covariates for
negative binomial and logistic regression respectively. Default is
|
unpenalizedz |
Additional unpenalized covariates for
negative binomial and logistic regression respectively. Default is
|
offsetx, offsetz |
Two vector of observations that are included in the
linear predictors of negative binomial regression and logistic regression
respectively. Default are |
betaweight, gammaweight |
Weights of the coefficients for the penalization in negative binomial regression and logistic regression respectively. Default are 1. |
pfactor |
default is 1e-2. The multiplier for the largest calculated penalty to determine smallest penalty value. Use in conjunction with nlambda/ntau to control the granularity of the tp grid. |
penType |
options are 1 (default) or 2. 1 is the group log penalty. 2 is lasso. |
A matrix with two columns. Each row represents a pair of tuning parameters: lambda and tau.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.