Learn R Programming

ordinalCont (version 0.4)

logLik.ocm: Extract Log-likelihood for a Continuous Ordinal Model

Description

Extracts the log-likelihood for a fitted ocm object

Usage

"logLik"(object, ...)

Arguments

object
an ocm object
...
further arguments to be passed to methods

Value

The log-likelihood of an ocm object. This is a number with attributes
df
estimated degrees of freedom for the fitted model object
nobs
number of observations used in the fitted model object
class
class of the returned object: logLik.ocm

See Also

ocm

Examples

Run this code
ANZ0001.ocm <- ANZ0001[ANZ0001$cycleno==0 | ANZ0001$cycleno==5,]
ANZ0001.ocm$cycleno[ANZ0001.ocm$cycleno==5] <- 1
fit.overall  <- ocm(overall  ~ cycleno + age + bsa + treatment, data=ANZ0001.ocm)
logLik(fit.overall)

Run the code above in your browser using DataLab