logLik.slouch: Extract Log-Likelihood

Description Usage Arguments Value Examples

View source: R/methods.R

Description

Extract Log-Likelihood

Usage

1
2
## S3 method for class 'slouch'
logLik(object, ...)

Arguments

object

An object of class 'slouch'

...

Additional arguments.

Value

An object of class 'logLik'

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(artiodactyla)
data(neocortex)

neocortex <- neocortex[match(artiodactyla$tip.label, neocortex$species), ]

m0 <- slouch.fit(phy = artiodactyla,
                 species = neocortex$species,
                 response = neocortex$body_mass_g_log_mean,
                 mv.response = neocortex$body_mass_g_log_varmean,
                 fixed.fact = neocortex$diet,
                 hillclimb = TRUE)
                 
logLik(m0)

slouch documentation built on Feb. 21, 2020, 5:08 p.m.