Description Usage Arguments Details Value Examples
View source: R/ancestry.strat.test.R
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.
1 | ancestry.strat.test(data_entry)
|
data_entry |
Dataframe input that includes the variables SBP_meas, DBP_meas, and hypertension variables created using the function "htn_outcome_classify" |
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
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 |
1 | STUDYPI_ancestry_strat_test <- ancestry.strat.test(classed)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.