Log-Likelihood of a 'glc' or 'gcjc' Object

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.