SM_output.logis_fe {pprof} | R 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 |
parm |
specifies a subset of providers for which confidence intervals are to be given.
By default, all providers are included. The class of |
stdz |
a character string or a vector specifying the standardization method(s). The possible values are:
|
measure |
a character string or a vector indicating whether the output measure is "ratio" or "rate"
|
null |
if |
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 |
direct.ratio |
standardization ratio using direct method if |
indirect.rate |
standardization rate using indirect method if |
direct.rate |
standardization rate using direct method if |
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
ProvID = ExampleDataBinary$ProvID
fit_fe <- logis_fe(Y = outcome, Z = covar, ProvID = ProvID, message = FALSE)
SR <- SM_output(fit_fe, stdz = "direct", measure = "rate")
SR$direct.rate