AIC.psem {piecewiseSEM} | R Documentation |
Generic function for SEM AIC(c) score
Description
Generic function for SEM AIC(c) score
Usage
## S3 method for class 'psem'
AIC(object, ..., AIC.type = "loglik", aicc = FALSE)
Arguments
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 |
Examples
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")
[Package piecewiseSEM version 2.3.0.1 Index]