View source: R/comorbidity_asso.R
comorbidity_asso | R Documentation |
Association tests between each co-morbidity and given phenotype (susceptibility, mortality or severity) with the adjustment of covariates.
comorbidity_asso( pheno, covariates, cormorbidity, population = "all", cov.name = c("sex", "age", "bmi"), phe.name, ICD10.file )
pheno |
phenotype dataframe - output from makePheno function |
covariates |
covariate dataframe - output from risk.factor function. Optional. |
cormorbidity |
Comorbidity summary generated from comorbidity.summary. |
population |
Choose self-report population/ethnic background group from "all", white", "black", "asian", "mixed", or "other". By default, population="all", include all ethnic groups. |
cov.name |
Selected covariates names. By default, cov.name=c("sex","age","bmi"), covariates are sex age and BMI. |
phe.name |
Phenotype name. |
ICD10.file |
The ICD10 code file, which is included in the package. |
Outputs a comorbidity association test result with OR, 95% CI and p-value.
## Not run: comorb.asso <- comorbidity_asso(pheno=phe, covariates=covar, cormorbidity=comorb, population="white", cov.name=c("sex","age","bmi","SES","smoke","inAgedCare"), phe.name="hospitalisation", ICD10.file=covid_example("ICD10.coding19.txt.gz")) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.