pecc_table1 | R Documentation |
Re compute table1 from sratch
pecc_table1( dataset, rowl, ..., coll = "", NArp = " ", geomMean = F, na.rm = T, round = 1 )
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 |
Thibaud Derippe (Thibaud.Derippe@gmail.com)
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:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.