figure-image

Figure 5.5b

Title:

Age-varying prevalences of past 30-day cigarette use among high school students given sex and perceived smoking risk as a function of historical time: 1990-2017.

Syntax:

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(C I G)}{1+P(C I G)}\right)=\beta_{0}(t)+\beta_{1}(t) R I S K_{i}+\beta_{2}(t) S E X_{i}+\beta_{3}(t) R I S K_{-} S E X_{i}

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.