SM_output.logis_re {pprof} | R Documentation |
Calculate direct/indirect standardized ratios/rates from a fitted logis_re
object
Description
Provide direct/indirect standardized ratios/rates for a random effect logistic model.
Usage
## S3 method for class 'logis_re'
SM_output(
fit,
parm,
stdz = "indirect",
measure = c("rate", "ratio"),
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"
|
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. |
Examples
data(ExampleDataBinary)
outcome = ExampleDataBinary$Y
covar = ExampleDataBinary$Z
ProvID = ExampleDataBinary$ProvID
fit_re <- logis_re(Y = outcome, Z = covar, ProvID = ProvID)
SR <- SM_output(fit_re, stdz = "direct", measure = "rate")
SR$direct.rate