estfunReg function

Extract Empirical First Derivative of Log-likelihood Function

Extract Empirical First Derivative of Log-likelihood Function

Generic function for extracting the empirical first derivative of log-likelihood function of a fitted regularized model.

estfunReg(x, ...)

Arguments

  • x: a fitted model object.
  • ...: arguments passed to methods.

Returns

A matrix containing the empirical first derivative of log-likelihood functions. Typically, this should be an nxkn x k matrix corresponding to nn observations and kk parameters. The columns should be named as in coef or terms, respectively.

See Also

zipath

References

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.

Author(s)

Zhu Wang zwang145@uthsc.edu

Examples

data("bioChemists", package = "pscl") fm_zinb <- zipath(art ~ . | ., data = bioChemists, family = "negbin", nlambda=10, maxit.em=1) res <- estfunReg(fm_zinb, which=which.min(fm_zinb$bic))
  • Maintainer: Zhu Wang
  • License: GPL-2
  • Last published: 2024-06-27