figure-image

Figure 3.2

Title:

Estimated prevalence of past-year hypertension across age.

Syntax:

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:

The following SAS syntax creates a new dataset called highbp that contains the newly calculated prevalence estimate (in variable HPROP) and corresponding confidence interval values (in variables HPROP_L and HPROP_U for lower and upper bounds, respectively) across the age range:

Copy to Clipboard

Next, we export the SAS working dataset called highbp to Excel as follows:

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.