table_continuous {doMIsaul}R Documentation

Display table with comparison of the partition with continuous variables.

Description

Display table with comparison of the partition with continuous variables.

Usage

table_continuous(
  data,
  partition.name,
  vars.cont,
  vars.cont.names = NULL,
  na.value = "",
  nb.dec = 1,
  text.pval = FALSE
)

Arguments

data

The dataset.

partition.name

string. Name of the partition (in data). The partition variable should be a factor.

vars.cont

vector of strings. variables to compare to (continuous only).

vars.cont.names

Optional. Names for displaying the continuous variables. (in the same order than vars.cont)

na.value

Value to use for the empty cases (e.g. "" or NA).

nb.dec

digit. Number of decimals for the mean and quartile values.

text.pval

boolean. Set to TRUEto display "p=", to FALSE to display only the value.

Value

table with mean and Q1 Q3 values per level of the partition and ANOVA test p-values.

Examples

data(cancer, package = "survival")
cancer$status <- factor(cancer$status)
table_continuous(data = cancer, partition.name = "status",
                  vars.cont = c("age", "meal.cal", "wt.loss"))

[Package doMIsaul version 1.0.1 Index]