ancestry.strat.test: A function to test if there is a difference between old and...

Description Usage Arguments Details Value Examples

View source: R/ancestry.strat.test.R

Description

This function allows you to test two- (non-hypertensive vs. hypertensive) and three-level hypertension (normotensive, pre-hypertensive, hypertensive) classifications to see if there is a significant difference in classification based on old and new AHA guidelines. The tests are stratified by ancestry.

Usage

1
ancestry.strat.test(data_entry)

Arguments

data_entry

Dataframe input that includes the variables SBP_meas, DBP_meas, and hypertension variables created using the function "htn_outcome_classify"

Details

OLD AHA BP CUTOFFS: Normotensive: SBP <120 mm Hg AND DBP <80 mm Hg Pre-hypertensive: SBP 120-139 mm Hg OR DBP 80-89 mm Hg Hypertensive: SBP <e2><89><a5>140 mm Hg OR DBP <e2><89><a5>90 mm Hg

NEW AHA BP CUTOFFS: Normotensive: SBP <120 mm Hg AND DBP <80 mm Hg Pre-hypertensive/Elevated: SBP 120-129 mm Hg AND DBP <80 mm Hg Hypertensive: SBP <e2><89><a5>130 mm Hg OR DBP <e2><89><a5>80 mm Hg

Value

Will return a new list with 5 objects:

testSummary

Summary table of P-values for all 4 tests

stratSumAfr

Contingency table of old vs new AHA 3-level in African ancestry

stratSumEur

Contingency table of old vs new AHA 3-level in European ancestry

stratSumAfrBi

Contingency table of old vs new AHA 2-level in African ancestry

stratSumEurBi

Contingency table of old vs new AHA 2-level in European ancestry

Examples

1
STUDYPI_ancestry_strat_test <- ancestry.strat.test(classed)

margarethannum/PolygenicPTSD documentation built on May 17, 2019, 8:16 p.m.