Learn R Programming

pprof (version 1.0.2)

confint.logis_re: Get confidence intervals for provider effects or standardized measures from a fitted logis_re object

Description

Provide confidence intervals for provider effects or standardized measures from a random effect logistic model.

Usage

# S3 method for logis_re
confint(
  object,
  parm,
  level = 0.95,
  option = "SM",
  measure = c("rate", "ratio"),
  stdz = "indirect",
  alternative = "two.sided",
  ...
)

Value

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

CI.alpha

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

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".

Arguments

object

a model fitted from logis_re.

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:

  • "alpha" provider effect.

  • "SM" standardized measures.

measure

a character string or a vector indicating whether the output measure is "ratio" or "rate" if option = "SM". Both "rate" and "ratio" will be provided by default.

stdz

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

alternative

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

...

additional arguments that can be passed to the function.

Examples

Run this code
data(ExampleDataBinary)
outcome <- ExampleDataBinary$Y
ProvID <- ExampleDataBinary$ProvID
covar <- ExampleDataBinary$Z
fit_re <- logis_re(Y = outcome, Z = covar, ProvID = ProvID)
confint(fit_re)

Run the code above in your browser using DataLab