log_cov {UKB.COVID19}R 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)

[Package UKB.COVID19 version 0.1.5 Index]