Learn R Programming

pprof (version 1.0.2)

SM_output.linear_re: Calculate direct/indirect standardized differences from a fitted linear_re object

Description

Provide direct/indirect standardized differences for a random effect linear model.

Usage

# S3 method for linear_re
SM_output(fit, parm, stdz = "indirect", ...)

Value

A list containing the standardized differences based on the method(s) specified in stdz, as well as the observed and expected outcomes used to calculate the standardized measures:

indirect.difference

indirect standardized differences, if stdz includes "indirect".

direct.difference

direct standardized differences, if stdz includes "direct".

OE

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

Arguments

fit

a model fitted from linear_re.

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.

...

additional arguments that can be passed to the function.

Details

This function computes standardized differences for a random effect linear model using either direct or indirect methods, or both when specified. The function returns both the standardized differences and the observed and expected outcomes used for their calculation.

Examples

Run this code
data(ExampleDataLinear)
outcome <- ExampleDataLinear$Y
covar <- ExampleDataLinear$Z
ProvID <- ExampleDataLinear$ProvID
fit_linear <- linear_re(Y = outcome, Z = covar, ProvID = ProvID)
SM_output(fit_linear)

Run the code above in your browser using DataLab