get_contigency_table | R Documentation |
This function genartes contigency table and performs mcnemar.test if requested
get_contigency_table(
df,
left_var,
right_var,
test = F,
highlight = F,
highlight_p = 0.05
)
df |
A tibble or dataframe of the data |
left_var |
A character of the left variable name |
right_var |
A character of the right variable name |
test |
logical, T if you want to perfrom the test, default is F |
highlight |
logical, highlight=T highlights p values, default is F |
highlight_p |
a numeric value of the p value cutoff to highlight, default is 0.05 |
A tibble with centered or standardized variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.