get_contigency_table: Get contigency table

get_contigency_tableR Documentation

Get contigency table

Description

This function genartes contigency table and performs mcnemar.test if requested

Usage

get_contigency_table(
  df,
  left_var,
  right_var,
  test = F,
  highlight = F,
  highlight_p = 0.05
)

Arguments

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

Value

A tibble with centered or standardized variables


JiyueQin/tidyreport documentation built on Nov. 24, 2024, 9:24 a.m.