Computes confidence intervals for one or more parameters in a fitted model object.
Arguments
- object
- parm
A specification of which parameters are to be given confidence intervals (a character vector of names). If missing, all parameters are considered.
- level
The confidence level required. The default is
0.95
.- ...
Other arguments. Not used (needed for generic consistency).
Value
Gaussian-based confidence intervals (two-sided and equal-tailed) for the
fixed effect coefficients based on the confidence level specified by level
.
For ssn_glm()
objects, confidence intervals are on the link scale.
Examples
# Copy the mf04p .ssn data to a local directory and read it into R
# When modeling with your .ssn object, you will load it using the relevant
# path to the .ssn data on your machine
copy_lsn_to_temp()
temp_path <- paste0(tempdir(), "/MiddleFork04.ssn")
mf04p <- ssn_import(temp_path, overwrite = TRUE)
ssn_mod <- ssn_lm(
formula = Summer_mn ~ ELEV_DEM,
ssn.object = mf04p,
tailup_type = "exponential",
additive = "afvArea"
)
confint(ssn_mod)
#> 2.5 % 97.5 %
#> (Intercept) 59.18500695 83.46131699
#> ELEV_DEM -0.03485002 -0.02279448
confint(ssn_mod, level = 0.9)
#> 5 % 95 %
#> (Intercept) 61.13650116 81.50982278
#> ELEV_DEM -0.03388091 -0.02376358