Last chance! 50% off unlimited learning
Sale ends in
Generic function for extracting an estimator for the bread of sandwiches.
breadReg(x, which, …)
a fitted model object.
which penalty parameter(s)?
arguments passed to methods.
A matrix containing an estimator for the penalized second derivative of log-likelihood function.
Typically, this should be an coef
or terms
, respectively.
Zhu Wang, Shuangge Ma and Ching-Yun Wang (2015) Variable selection for zero-inflated and overdispersed data with application to health care demand in Germany, Biometrical Journal. 57(5):867-84.
# NOT RUN {
data("bioChemists", package = "pscl")
fm_zinb <- zipath(art ~ . | ., data = bioChemists, family = "negbin", nlambda=10, maxit.em=1)
breadReg(fm_zinb, which=which.min(fm_zinb$bic))
# }
Run the code above in your browser using DataLab