basetable: Create a baseline characteristics table

Description Usage Arguments Value Examples

View source: R/basetable.R

Description

This function create a baesline characteristics tables according to the variables included in a specific dataframe.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
basetable(
  data,
  varlist,
  grvar = NULL,
  len.max = 5,
  y.correct = T,
  trend = F,
  gr.name = NULL,
  method = 3,
  combine = F,
  print.result = T,
  p_norm = 0.05
)

Arguments

data

Dataframe to be used

varlist

Vector of variables to be displayed

grvar

Grouping variable

len.max

Maximum number of elements to convert to factor

y.correct

a logical indicating whether to apply continuity correction

trend

a logical whether to do trend test

gr.name

Elements labels of grouping variables

method

Select between parametric, nonparametric or combined testing

combine

Display overall patient summary values as well

print.result

Print varClassifier result

p_norm

Cut-off p-value classifying normal and non-normal

Value

Dataframe of baseline characteristics table

Examples

1
basetable(data=mtcars, varlist=c("cyl", "mpg", "wt", "hp"), grvar="am")

nephroj/medicj documentation built on Dec. 22, 2021, 12:10 a.m.