View source: R/logLik.GNARfit.R
logLik.GNARfit | R Documentation |
Returns the log-likelihood for a GNARfit
object.
## S3 method for class 'GNARfit'
logLik(object,...)
object |
A |
... |
Optional additional arguments, not used here. |
S3 method for the GNARfit class. The function returns the value of
-TN/2 \log(2 \pi) - T/2 \log(| \Sigma |) - 1/2 trace(E \Sigma^{-1} E'),
where T
is the time length of the observations, N
is the number of nodes, \Sigma = E E' /T
is the estimated covariance matrix and E
is the matrix of residuals.
A logLik
object.
#calculate log-likelihood for fiveNode data
#global alphas
logLik(GNARfit())
#individual alphas
logLik(GNARfit(globalalpha=FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.