logLik.rsm {marg} | R Documentation |
Computes the log likelihood for regression-scale models.
## S3 method for class 'rsm': logLik(object, ...)
object |
an object inheriting from class rsm representing a fitted
regression-scale model.
|
... |
absorbs any additional argument. |
This is a method for the function logLik()
for objects
inheriting from class rsm
.
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.
The default
print
method for logLik
objects is used.
## 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()