posthoc_factor_test: Post-hoc test to obtain overall p-value for a factor variable...

View source: R/posthoc_factor_test.R

posthoc_factor_testR Documentation

Post-hoc test to obtain overall p-value for a factor variable used in a eh_test_subtype fit.

Description

posthoc_factor_test takes a eh_test_subtype fit and returns an overall p-value for a specified factor variable.

Usage

posthoc_factor_test(fit, factor, nlevels)

Arguments

fit

the resulting eh_test_subtype fit.

factor

is the name of the factor variable of interest, supplied in quotes, e.g. factor = "race". Only supports a single factor.

nlevels

is the number of levels the factor variable in factor has.

Value

Returns a list.

pval is a formatted p-value.

pval_raw is the raw, unformatted p-value.

Author(s)

Emily C Zabor zabore@mskcc.org


riskclustr documentation built on March 23, 2022, 1:07 a.m.