descriptive_table: All-in-one publication ready descriptive table This function...

View source: R/Functions.R

descriptive_tableR Documentation

All-in-one publication ready descriptive table This function output a publication-ready descriptive table from a dataset. Each columns of the dataset is compared between the defined groups.

Description

All-in-one publication ready descriptive table This function output a publication-ready descriptive table from a dataset. Each columns of the dataset is compared between the defined groups.

Usage

descriptive_table(
  data,
  group,
  na.include = F,
  percent_type = 1,
  padj_method = "none",
  show_methods = F,
  exclude_vector = c("Patient_id", "patient_id", "Sample_ID", "Whole_cohort")
)

Arguments

data

A dataframe with row corresponding to samples/patients and columns to variables.

group

A character string corresponding to the comparative groups.

na.include

Should missing values be included in groups?

percent_type

For categorical variables, should percentage be calculated on the row (1) or columns (2)?

padj_method

Select the p.value adjustment method (none, fdr, holm or bonferonni).

show_methods

Should statistical tests names be precised in a supplementary column?

exclude_vector

columns to exclude from the analysis.


VincentAlcazer/StatAid documentation built on Aug. 27, 2024, 1:50 a.m.