logLik.gqcStruct: Log-Likelihood of a 'gqcStruct' Object

Description Usage Arguments Value Note See Also Examples

Description

Calculate the log-likelihood of the general quadratic classifier model applied to a data set.

Usage

1
2
## S3 method for class 'gqcStruct'
logLik(object, response, x, zlimit = Inf, ...)

Arguments

object

object of class gqcStruct

response

a vector of classification responses used to calculate the log-likelihood of the gqc model.

x

a matrix or dataframe containing values for each stimulus dimensions.

zlimit

integer. Used to truncate the z-scores whose absolute values are greater than zlimit when calculating the log-likelihood. Default to Inf

...

further arguments (currently unused)

Value

The log-likelihood for the general quadratic classifier described by object fitted against the dataset given by response and x.

Note

The value of attributes, attr(, "df") (degrees of freedom) is calculated based on the assumption that all the parameters in object are free to vary.

See Also

gqc, gqcStruct, logLik.gqc

Examples

1
2
3
4
5
m <- list(c(187, 142), c(213, 98))
covs <- list(diag(625, ncol=2, nrow=2), diag(600, ncol=2, nrow=2))
db <- qdb(means=m, covs=covs)
data(subjdemo_2d)
logLik(db, subjdemo_2d$response, x=subjdemo_2d[2:3], zlimit=7)

grt documentation built on May 2, 2019, 7:10 a.m.