log_cov: Perform association tests between phenotype and covariates

View source: R/asso_test.R

log_covR Documentation

Perform association tests between phenotype and covariates

Description

Perform association tests between phenotype and covariates

Usage

log_cov(pheno, covariates, phe.name, cov.name = c("sex", "age", "bmi"))

Arguments

pheno

phenotype dataframe - output from makePhenotypes function

covariates

covariate dataframe - output from risk_factor function.

phe.name

Phenotype name in the data.

cov.name

Selected covariate names in the data. By default, cov.name=c("sex","age","bmi"), covariates include sex, age and BMI.

Value

Outputs association test results with OR, 95% CI, and p-value.

Examples

## Not run: 
log_cov(pheno=phe, covariates=covar, phe.name="hospitalisation", cov.name=c("sex","age","bmi"))

## End(Not run)

UKB.COVID19 documentation built on March 18, 2022, 8:03 p.m.