Computes confidence intervals for one or more parameters in a fitted model object.
A specification of which parameters are to be given confidence intervals (a character vector of names). If missing, all parameters are considered.
The confidence level required. The default is 0.95.
Other arguments. Not used (needed for generic consistency).
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.
# 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) 63.58249155 98.13318289
#> ELEV_DEM -0.04270212 -0.02554688
confint(ssn_mod, level = 0.9)
#> 5 % 95 %
#> (Intercept) 66.35991011 95.35576433
#> ELEV_DEM -0.04132307 -0.02692593