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