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

Description Usage Arguments Details Value Note See Also Examples

Description

Computes the log likelihood for regression-scale models.

Usage

1
2
## S3 method for class 'rsm'
logLik(object, ...)

Arguments

object

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

...

absorbs any additional argument.

Details

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

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.

Note

The default print method for logLik objects is used.

See Also

rsm.object, logLik

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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()

hoa documentation built on May 2, 2019, 8:56 a.m.