Log-likelihood method for GNARfit objects
Returns the log-likelihood for a GNARfit
object.
## S3 method for class 'GNARfit' logLik(object,...)
object
: A GNARfit
object generated by a GNARfit call....
: Optional additional arguments, not used here.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.
A logLik
object.
#calculate log-likelihood for fiveNode data #global alphas logLik(GNARfit()) #individual alphas logLik(GNARfit(globalalpha=FALSE))
Useful links