logLik.rsm {marg} | R Documentation |
Compute the Log Likelihood for Regression-Scale Models
Description
Computes the log likelihood for regression-scale models.
Usage
## S3 method for class 'rsm'
logLik(object, ...)
Arguments
object |
an object inheriting from class |
... |
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
Examples
## 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()
[Package marg version 1.2-2.1 Index]