c_crit: Concrete class constructor

Description Usage Arguments Value

View source: R/Functions_Model_Criteria.R

Description

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

Usage

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

Arguments

Y

vector of the outcome variable

lc

linear combination lc = X'β

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.


estsyawo/RpacSPD documentation built on Aug. 12, 2019, 5:22 a.m.