Skip to contents

This function calculates Cohen's W coefficient for 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

cohens_w(strata, variable, data)

Arguments

strata

variable by which to compare standardized differences between the variable

variable

variable by which to calculate the standardized differences

data

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

Value

dataframe