Learn R Programming

R2admb (version 0.7.13)

AIC.admb: Standard accessor functions for ADMB model fits

Description

Extract standard information such as log-likelihood, AIC, coefficients, etc. from ADMB model fits

Usage

"AIC"(object, ..., k = 2)
"confint"(object, parm, level = 0.95, method = "default", type = "fixed", ...)
"print"(x, verbose = FALSE, ...)
"summary"(object, correlation = FALSE, symbolic.cor = FALSE, ...)
"print"(x, digits = max(3, getOption("digits") - 3), symbolic.cor = x$symbolic.cor, signif.stars = getOption("show.signif.stars"), ...)
"logLik"(object, ...)
"coef"(object, type = "fixed", ...)
"vcov"(object, type = "fixed", ...)
stdEr(object, ...)
"stdEr"(object, type = "fixed", ...)
"deviance"(object, ...)

Arguments

object
an ADMB model fit (of class "admb")
k
penalty value for AIC fits
parm
(currently ignored: FIXME) select parameters
level
alpha level for confidence interval
method
(character): "default" or "quad", quadratic (Wald) intervals based on approximate standard errors; "profile", profile CIs (if profile was computed); "quantile", CIs based on quantiles of the MCMC-generated posterior density (if MCMC was computed); "HPDinterval", CIs based on highest posterior density (ditto)
type
which type of parameters to report. Character vector, including one or more of "fixed" or "par" (standard, fixed-effect parameters); "random" (random effect parameters); "rep" (report variables); "sdrpt" (sdreport variables); "extra" (report and sdreport); "all" (all of the above).
x
an ADMB model fit (of class "admb")
verbose
show messages
correlation
currently unused parameter
symbolic.cor
currently unused parameter
digits
number of digits to display
signif.stars
show significance stars?
...
other parameters (for S3 generic compatibility)

Value

Extracts appropriate values: numeric (scalar) for AIC, type logLik for logLik, numeric vector of coefficients, numeric variance-covariance matrix of parameter estimates

Examples

Run this code
admbex <- system.file("doc","Reedfrog_runs.RData",package="R2admb")
 load(admbex)
 m1
 coef(m1)
 summary(m1)
 coef(summary(m1)) ## returns just z-table
 AIC(m1)
 vcov(m1)
 logLik(m1)
 deviance(m1)
 stdEr(m1)

Run the code above in your browser using DataLab