A function for constructing functions for concrete classes of models for the crit() family of of functions.

c_crit(Y, lc, eta = NULL, modclass = "lmcd")

Arguments

Y

vector of the outcome variable

lc

linear combination \(lc = X'\beta\)

eta

for models needing extra parameter besides beta in the linear combination lc. eta can be a vector

modclass

the class of model. Currently "lmcd" for linear regression, "logitcd" (logit model), "poiscd" (poisson model), "probitcd" (probit model), "nbcd" (negative binomial) are supported.

Value

object an object list with class attribute modclass.