Skip to contents

This function calculates standardized categorical variable differences between the specified strata variable. If the strata variable has more than 2 levels, corresponding pairwise comparisons will be performed.

Usage

standardized_diff(strata, variable, weights, data)

Arguments

strata

variable by which to compare standardized differences between the variable

variable

variable by which to calculate the standardized differences

weights

variable by which to weigh observations

data

dataframe object that contains the data, variable, and strata variable from which to calculate

Value

dataframe