eh_test_subtype
fit.R/posthoc_factor_test.R
posthoc_factor_test.Rd
posthoc_factor_test
takes a eh_test_subtype
fit
and returns an overall p-value for a specified factor variable.
posthoc_factor_test(fit, factor, nlevels)
the resulting eh_test_subtype
fit.
is the name of the factor variable of interest, supplied
in quotes, e.g. factor = "race"
. Only supports a single factor.
is the number of levels the factor variable in factor
has.
Returns a list.
pval
is a formatted p-value.
pval_raw
is the raw, unformatted p-value.