confint.slcafit: Confidence Intervals for Model Parameters

View source: R/methods.R

confint.slcafitR Documentation

Confidence Intervals for Model Parameters

Description

Computes confidence intervals for one or more parameters of a fitted model.

Usage

## S3 method for class 'slcafit'
confint(object, parm, level = 0.95, type = c("probs", "logit"), ...)

Arguments

object

an object of class slcafit.

parm

an integer or string specifying the parameters for which confidence intervals are to be computed.

level

a numeric value representing the confidence level for the intervals. The default is 0.95 (95% confidence level).

type

a character string specifying the format in which the results should be returned. Options include "probs" for probability format and "logit" for log-odds (logit) format, with the default being "probs".

...

additional arguments.

Value

A matrix with two columns representing the confidence intervals for the selected parameters. The column names correspond to the specified confidence level:

  • ⁠100 * (level / 2)%⁠: The lower bound of the confidence interval.

  • ⁠100 * (1 - level / 2)%⁠: The upper bound of the confidence interval.

The level argument determines the confidence level, with common values being 0.95 for a 95% confidence interval and 0.99 for a 99% confidence interval.

Examples

param(nlsy_jlcpa, index = TRUE)
confint(nlsy_jlcpa)
confint(nlsy_jlcpa, 1:4)

slca documentation built on Sept. 9, 2025, 5:51 p.m.