Learn R Programming

slca (version 1.0.0)

confint.slca: Confidence Intervals for Model Parameters

Description

Computes confidence intervals for one or more parameters of fitted model. Package slca adds methods for slca fits.

Usage

# S3 method for slca
confint(object, parm, level = 0.95, type = c("param", "logit"), ...)

Value

A matrix with two columns representing the confidence intervals for the selected parameters. The columns are named based on the specified confidence level (level):

  • 100 * (level / 2) %: This column shows the lower bound of the confidence interval.

  • 100 * (1 - level / 2) %: This column shows the upper bound of the confidence interval.

The level parameter specifies the confidence level, with common values being 0.05 for a 95% confidence interval and 0.01 for a 99% confidence interval.

Arguments

object

an object of class slca and estimated.

parm

an integer string specifying parameters to be given confidence intervals.

level

numeric value representing the desired confidence level for the intervals, with a default of 0.95.

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.

Examples

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

Run the code above in your browser using DataLab