figure-image

Figure 3.4b

Title:

Estimated prevalence of past-year hypertension across age separately for Black, Hispanic/Latinx, White, and Other racial/ethnic groups of adults.

Syntax:

For generating a plot of the estimated odds of hypertension among Black adults only (nethrace = 2):

Copy to Clipboard

For generating a plot of the estimated odds of hypertension among Hispanic/Latinx adults only (nethrace = 5):

Copy to Clipboard

For generating a plot of the estimated odds of hypertension among White adults only (nethrace = 1):

Copy to Clipboard

For generating a plot of the estimated odds of hypertension among Other adults only (user created “other” variable representing other racial/ethnic groups = 1):

Copy to Clipboard

Equation:

\ln \left(\frac{p\left(H I G H B P_{i}\right)}{1+p\left(H I G H B P_{i}\right.}\right)=\beta_{0}(t)

Notes:

To export the dataset for Black adults into Excel for plotting purposes:

Copy to Clipboard

To export the dataset for Hispanic/Latinx adults into Excel for plotting purposes:

Copy to Clipboard

To export the dataset for White adults into Excel for plotting purposes:

Copy to Clipboard

To export the dataset for “Other” adults into Excel for plotting purposes:

Copy to Clipboard

Return to all Figures HERE.

Time-Varying Effect Modeling for the Behavioral, Social, and Health Sciences

Time-Varying Effect Modeling for the Behavioral, Social, and Health Sciences

Authors: Stephanie Lanza and Ashley Linden-Carmichael

Reprinted by permission from Springer Nature: Generalized Time-Varying Effect Models for Binary and Count Outcomes by Stephanie T. Lanza and Ashley N. Linden-Carmichael, 2021.