logLik.glc: Log-Likelihood of a 'glc' or 'gcjc' Object

Description Usage Arguments Value Note See Also Examples

View source: R/glc.R

Description

Extract the log-likelihood of the fitted general linear or conjunctive classifier model.

Usage

1
2
3
4
5
## S3 method for class 'glc'
logLik(object, ...)

## S3 method for class 'gcjc'
logLik(object, ...)

Arguments

object

object of class glc or gcjc

...

further arguments (currently unused)

Value

The log-likelihood for the general linear or conjunctive classifier represented by the estimated parameters in object

Note

This function is intended for indirect internal use by functions such as AIC. To obtain the log-likelihood of the fitted model applied to new dataset, use logLik.glcStruct or logLik.gcjcStruct

See Also

glc, logLik.glcStruct, gcjc, logLik.gcjcStruct

Examples

1
2
3
4
data(subjdemo_2d)
fit <- glc(response ~ x + y, data=subjdemo_2d, 
    category=subjdemo_2d$category, zlimit=7)
logLik(fit)

matsukik/grt documentation built on May 21, 2019, 12:57 p.m.