AIC.psem | R Documentation |
Generic function for SEM AIC(c) score
## S3 method for class 'psem'
AIC(object, ..., AIC.type = "loglik", aicc = FALSE)
object |
a psem object |
... |
additional arguments to AIC |
AIC.type |
whether the log-likelihood |
aicc |
whether correction for small sample size should be applied. Default is |
mod <- psem(
lm(rich ~ cover, data = keeley),
lm(cover ~ firesev, data = keeley),
lm(firesev ~ age, data = keeley),
data = keeley
)
# Get log-likelihood based AIC
AIC(mod)
# Get d-sep based AIC
AIC(mod, AIC.type = "dsep")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.