summarize_phenotypes | R Documentation |
Title Summarize phenotypes
summarize_phenotypes(pheno, categorical_variables, numeric_variables, strata)
pheno |
A data frame of phenotypes, includes the trait and covariates |
categorical_variables |
all selected categorical variables in the model, example: c("Sex", "Race") |
numeric_variables |
all selected numeric variables in the model, example: c("Age", "Trait.1", "Trait.2") |
strata |
Variable to stratify, to example: "Race" |
summary table of phenotypes
library(tableone)
data(phenotype)
categorical_variable<-c("Sex","Race")
numeric_variable<-c("Age","Trait.1","Trait.2")
strata<-"Race"
summarize_phenotypes(pheno=phenotype, categorical_variables =categorical_variables, numeric_variables=numeric_variable, strata=strata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.