SM_output.logis_fe: Calculate direct/indirect standardized ratios/rates from a...

View source: R/SM_output.logis_fe.R

SM_output.logis_feR Documentation

Calculate direct/indirect standardized ratios/rates from a fitted logis_fe object

Description

Provide direct/indirect standardized ratios/rates for a fixed effect logistic model.

Usage

## S3 method for class 'logis_fe'
SM_output(
  fit,
  parm,
  stdz = "indirect",
  measure = c("rate", "ratio"),
  null = "median",
  threads = 2,
  ...
)

Arguments

fit

a model fitted from logis_fe.

parm

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

stdz

a character string or a vector specifying the standardization method(s). The possible values are:

  • "indirect" (default) indirect standardization method.

  • "direct" direct standardization method.

  • c("indirect", "direct") outputs both direct and indirect standardized measures.

measure

a character string or a vector indicating whether the output measure is "ratio" or "rate"

  • "rate" output the standardized rate. The "rate" has been restricted to 0% - 100%.

  • "ratio" output the standardized ratio.

  • c("ratio", "rate") (default) output both the ratio and rate.

null

if "stdz = indirect", a character string or a number defining the population norm. The default is "median".

threads

an integer specifying the number of threads to use. The default value is 2.

...

additional arguments that can be passed to the function.

Value

A list contains standardized measures, as well as the observed and expected outcomes used for calculation, depending on the user's choice of standardization method (stdz) and measure type (measure).

indirect.ratio

standardization ratio using indirect method if stdz includes "indirect" and measure includes "ratio".

direct.ratio

standardization ratio using direct method if stdz includes "direct" and measure includes "ratio".

indirect.rate

standardization rate using indirect method if stdz includes "indirect" and measure includes "rate".

direct.rate

standardization rate using direct method if stdz includes "direct" and measure includes "rate".

OE

a list of data frames containing the observed and expected outcomes used for calculating standardized measures.

References

He, K. (2019). Indirect and direct standardization for evaluating transplant centers. Journal of Hospital Administration, 8(1), 9-14.

Examples

data(ExampleDataBinary)
outcome = ExampleDataBinary$Y
covar = ExampleDataBinary$Z
ID = ExampleDataBinary$ID
fit_fe <- logis_fe(Y = outcome, Z = covar, ID = ID, message = FALSE)
SR <- SM_output(fit_fe, stdz = "direct", measure = "rate")
SR$direct.rate


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