Skip to contents

Returns a logLik class object with attributes nobs and df.

Usage

# S3 method for marssMLE
logLik(object, ...)

Arguments

object

A marssMLE object.

...

Other arguments. Not used.

Value

An object of class logLik.

Author

Eli Holmes, NOAA, Seattle, USA.

See also

Examples

dat <- t(harborSeal)
dat <- dat[c(2, 11, 12), ]
MLEobj <- MARSS(dat, model = list(Z = factor(c("WA", "OR", "OR"))))
#> Success! abstol and log-log tests passed at 37 iterations.
#> Alert: conv.test.slope.tol is 0.5.
#> Test with smaller values (<0.1) to ensure convergence.
#> 
#> MARSS fit is
#> Estimation method: kem 
#> Convergence test: conv.test.slope.tol = 0.5, abstol = 0.001
#> Estimation converged in 37 iterations. 
#> Log-likelihood: 13.72233 
#> AIC: -11.44465   AICc: -8.918339   
#>  
#>                 Estimate
#> A.OR.SouthCoast  0.49280
#> R.diag           0.02509
#> U.WA             0.06171
#> U.OR             0.03686
#> Q.(WA,WA)        0.01082
#> Q.(OR,OR)        0.00439
#> x0.WA            7.41712
#> x0.OR            6.56460
#> Initial states (x0) defined at t=0
#> 
#> Standard errors have not been calculated. 
#> Use MARSSparamCIs to compute CIs and bias estimates.
#> 
logLik(MLEobj)
#> 'log Lik.' 13.72233 (df=8)