Learn R Programming

cold (version 2.0-3)

getLogLik-methods: Methods for function getLogLik

Description

Extract the Log-Likelihood of a fitted model object from class cold.

Usage

# S4 method for cold
getLogLik(object)

Arguments

object

an object of class cold.

Value

Returns a numeric value corresponding to the log-Likelihood of the fitted model.

Methods

signature(object="cold"):

Returns a numeric value corresponding to the log-Likelihood of the fitted model.

Examples

Run this code
# NOT RUN {
#####  data = seizure

### AR1R
seiz1M<-cold(y~lage+lbase+v4+trt+trt:lbase, data=seizure, start=NULL, 
dependence="AR1")

getLogLik(seiz1M)

### indR
seiz0R<-cold(y ~ lage + lbase + trt + trt:lbase + v4, random = ~ 1,
        data = seizure, dependence = "indR")

getLogLik(seiz0R)

# }

Run the code above in your browser using DataLab