Learn R Programming

marg (version 1.2-2.1)

logLik.rsm: Compute the Log Likelihood for Regression-Scale Models

Description

Computes the log likelihood for regression-scale models.

Usage

# S3 method for rsm
logLik(object, …)

Arguments

object

an object inheriting from class rsm representing a fitted regression-scale model.

absorbs any additional argument.

Value

Returns an object class logLik which is a number with attributes, attr(r, "df") (degrees of freedom) giving the number of parameters (regression coefficients plus scale parameter, if not fixed) in the model.

Details

This is a method for the function logLik() for objects inheriting from class rsm.

See Also

rsm.object, logLik

Examples

Run this code
# NOT RUN {
## Sea Level Data
data(venice)
attach(venice)
Year <- 1:51/51
c11 <- cos(2*pi*1:51/11) ; s11 <- sin(2*pi*1:51/11)
c19 <- cos(2*pi*1:51/18.62) ; s19 <- sin(2*pi*1:51/18.62)
venice.rsm <- rsm(sea ~ Year + I(Year^2) + c11 + s11 + c19 + s19, 
                  family = extreme)
##
logLik(venice.rsm)
detach()
# }

Run the code above in your browser using DataLab