logLik.GNARfit {GNAR} | R Documentation |
Log-likelihood method for GNARfit objects
Description
Returns the log-likelihood for a GNARfit
object.
Usage
## S3 method for class 'GNARfit'
logLik(object,...)
Arguments
object |
A |
... |
Optional additional arguments, not used here. |
Details
S3 method for the GNARfit class. The function returns the value of
where is the time length of the observations,
is the number of nodes,
is the estimated covariance matrix and
is the matrix of residuals.
Value
A logLik
object.
Examples
#calculate log-likelihood for fiveNode data
#global alphas
logLik(GNARfit())
#individual alphas
logLik(GNARfit(globalalpha=FALSE))
[Package GNAR version 1.1.3 Index]