biv_quant: Bivariate table for a main quantitative vector

View source: R/tables_bivariate.R

biv_quantR Documentation

Bivariate table for a main quantitative vector

Description

Bivariate table for a main quantitative vector

Usage

biv_quant(
  x,
  y,
  xname = NULL,
  yname = NULL,
  na.rm = FALSE,
  add_all = TRUE,
  test = c("none", "anova", "kruskal.test"),
  latex = TRUE,
  latex_placement = "ht",
  label_prefix = "",
  label = "",
  caption_prefix = "",
  caption = "",
  wb = NULL,
  sheets = ""
)

Arguments

x

a quantitative variable

y

a discrete quantitative variable, a character or a factor

xname

a string used to identify x variable (used for latex captions and excel sheets)

yname

a string used to identify x variable (used for latex captions and excel sheets)

na.rm

exclude missing value group for y

add_all

add "All" row

test

one of 'none', 'anova', or 'kruskal.test'

latex

output the table using xtable::xtable

latex_placement

table placement for latex printing

label_prefix

latex label prefix (useful for a common prefix in univariate_tables and multivariate_tables). It's ignored if label is specified (eg the latter is considered full/complete/correct)

label

latex label

caption_prefix

a prefix for latex caption (useful for a common prefix in univariate_tables and multivariate_tables)

caption

latex caption

wb

an openxlsx Workbook; if not NULL the table will be saved in the workbook too, aside printing

sheets

optional sheet names (same length as the number of tables)


lbraglia/lbstat documentation built on Sept. 17, 2023, 2:30 p.m.