Description Usage Arguments Value Examples
View source: R/table_continous.R
Display table with comparison of the partition with continuous variables.
1 2 3 4 5 6 7 8 9 | table_continuous(
data,
partition.name,
vars.cont,
vars.cont.names = NULL,
na.value = "",
nb.dec = 1,
text.pval = FALSE
)
|
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 |
na.value |
Value to use for the empty cases (e.g. |
nb.dec |
digit. Number of decimals for the mean and quartile values. |
text.pval |
boolean. Set to |
table with mean and Q1 Q3 values per level of the partition and ANOVA test p-values.
1 2 3 4 | data(cancer, package = "survival")
cancer$status <- factor(cancer$status)
table_continuous(data = cancer, partition.name = "status",
vars.cont = c("age", "meal.cal", "wt.loss"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.