summarize_phenotypes: Title Summarize phenotypes

View source: R/Plots.R

summarize_phenotypesR Documentation

Title Summarize phenotypes

Description

Title Summarize phenotypes

Usage

summarize_phenotypes(pheno, categorical_variables, numeric_variables, strata)

Arguments

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"

Value

summary table of phenotypes

Examples

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)

nkurniansyah/Olivia documentation built on July 29, 2023, 9:10 a.m.