htn_outcome_classify: A Function to Classify continuous SBP and DBP outcomes as...

Description Usage Arguments Details Value Examples

View source: R/htn_outcome_classify.R

Description

This function allows you to create new categorical hypertension variables in your dataset based on old and new AHA guidelines.

Usage

1

Arguments

data_entry

Dataframe input that includes the variables SBP_meas, DBP_meas, and antihtn_use -0 or 1-

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 dataframe with 7 new variables:

htn_aha_old

Three categories (normotensive = 0, pre-hypertensive = 1, hypertensive = 2) of hypertension based on old AHA guidelines

htn_aha_new

Three categories (normotensive = 0, pre-hypertensive = 1, hypertensive = 2) of hypertension based on new AHA guidelines

htn_aha_old_bi

Two categories (non-hypertensive = 0, hypertensive = 1) of hypertension based on old AHA guidelines, grouping normo- and pre-hypertensive

htn_aha_new_bi

Two categories (non-hypertensive = 0, hypertensive = 1) of hypertension based on new AHA guidelines, grouping normo- and pre-hypertensive

SBP_meas_adj

New SBP outcome variable adjusting +10 for anti-hypertensive use

DBP_meas_adj

New DBP outcome variable adjusting +5 for anti-hypertensive use

ancestry

New binary variable for european (0) and african (1) ancestry (combines African and African American)

Examples

1
classed <- htn_outcome_classify(merged)

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