confint.linear_fe: Get confidence intervals for provider effects or standardized...

View source: R/confint.linear_fe.R

confint.linear_feR Documentation

Get confidence intervals for provider effects or standardized measures from a fitted linear_fe object

Description

Provide confidence intervals for provider effects or standardized measures from from a fixed effect linear model.

Usage

## S3 method for class 'linear_fe'
confint(
  object,
  parm,
  level = 0.95,
  option = "SM",
  stdz = "indirect",
  null = "median",
  alternative = "two.sided",
  ...
)

Arguments

object

a model fitted from linear_fe.

parm

specify a subset of providers for which confidence intervals are given. By default, all providers are included. The class of parm should match the class of the provider IDs.

level

the confidence level. The default value is 0.95.

option

a character string specifying whether the confidence intervals should be provided for provider effects or standardized measures:

  • "gamma" provider effect (only supports "two.sided" confidence interval).

  • "SM" standardized measures.

stdz

a character string or a vector specifying the standardization method if option includes "SM". See stdz argument in SM_output.linear_fe.

null

a character string or a number specifying the population norm for calculating standardized measures if option includes "SM". See null argument in SM_output.linear_fe.

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater", or "less". Note that "gamma" for argument option only supports "two.sided".

...

additional arguments that can be passed to the function.

Value

A list of data frames containing the confidence intervals based on the values of option and stdz.

CI.gamma

Confidence intervals for provider effects if option includes "gamma".

CI.indirect

Confidence intervals for indirect standardized differences if option includes "SM" and stdz includes "indirect".

CI.direct

Confidence intervals for direct standardized differences if option includes "SM" and stdz includes "direct".

Examples

data(ExampleDataLinear)
outcome <- ExampleDataLinear$Y
covar <- ExampleDataLinear$Z
ID <- ExampleDataLinear$ID
fit_linear <- linear_fe(Y = outcome, Z = covar, ID = ID)
confint(fit_linear)


pprof documentation built on April 12, 2025, 1:33 a.m.