pecc_table1: Table1 creation

View source: R/pecc_table1.R

pecc_table1R Documentation

Table1 creation

Description

Re compute table1 from sratch

Usage

pecc_table1(
  dataset,
  rowl,
  ...,
  coll = "",
  NArp = " ",
  geomMean = F,
  na.rm = T,
  round = 1
)

Arguments

dataset

dataset to analysis

rowl

vector of dataset column names (quoted) with addition of _cont ("X_cont") or _cat ("X_cat") to force to consider a numeric column into a categorical one

...

columns (generally ID, unquoted) used to reduce the dataset. "..." integrated into pecc_search_cov(...) function.

coll

optional name of a categorical covariate (quoted)

NArp

if NA are produced, which string to display (default = " ")

geomMean

if True, compute geometric mean

na.rm

if True (default), NA values are removed and ignored. If false, NA are kept with NA as result of most statistics parameter.

round

number of digit displayed

Author(s)

Thibaud Derippe (Thibaud.Derippe@gmail.com)

Examples

pecc_table1(mtcars, rowl = c("mpg_cont", "gear_cont", "gear_cat"), coll = "cyl")

# if you have a dataset with multiple rows per ID, you will have too many patients (one per row):
pecc_table1(Theoph, rowl = c("Wt_cont", "Dose_cont"))

# after rowl parameter, you can add all ID columns you want in "..." to extract one line per patient:

Peccary-PMX/PeccAnalysis documentation built on July 7, 2022, 5:27 a.m.