marascuiloPHA: marascuiloPHA

Description Usage Arguments Value Examples

Description

marascuiloPHA performs the Marascuilo PHA procedure, which is a conservative chi-square pairwise comparison tests. Specifically, given a level of a grouping variable of interest, this procedure will test whether or not the proportion of patients that are that level differ pairwise across all levels of another variable.

Usage

1
marascuiloPHA(data, group, var, pval = 0.05, dec = 3)

Arguments

data

data.frame containing all data

group

Variable name of the grouping variable

var

Variance name for the variable of interest

pval

Significance level. Default of 0.05

dec

Number of decimals to round descriptive statistics to.

Value

A list of matrices.

Examples

1
2
3
4
5
example_df <- data.frame(x1 = sample(letters[1:3], 30, replace = T),
                         x2 = sample(letters[10:14], 30, replace = T))
example_df
with(example_df, table(x1, x2))
marascuiloPHA(data = example_df, group = "x1", var = "x2")

TaylorAndrew/atPostAnalyze documentation built on May 9, 2019, 4:23 p.m.