image of young woman smoking a cigarette

TVEM With Intensive Longitudinal Data

The time-varying effect model (TVEM) allows scientists to use intensive longitudinal data (ILD) to observe change over time in the factors that influence an outcome. For example, when a person is trying to quit smoking, successful quitting is influenced by a number of factors, including mood, belief in one’s ability to quit, and stress level. With TVEM, we can model the changes in these relationships which will allow us to see when and under what circumstances a quitter might need additional support in order to succeed.

Introductory Example: TVEM Applied to Smoking-Cessation Data

TVEM allows researchers to see the change over time in the associations between personal factors – such as cigarette craving and belief in one’s ability to quit – and abstinence from smoking. This information could be used to identify when early intervention is needed for people who are in danger of smoking relapse.

Data Set: EMA Study of Smokers Trying to Quit

Smokers were prompted to report at 5 random times each day on a cell phone.

  • This is called ecological momentary assessment (EMA).
  • Data were collected 2 weeks pre-quit and 2 weeks post-quit
  • 304 smokers
  • Baseline mean = 27.6 cigarettes/day

About TVEM

Many complex factors are involved in health-risk behaviors. Scientists often study factors in a model that vary over time. However, traditional methods assume that the effects of these covariates are consistent. TVEM allows scientists to measure the time-varying effects of covariates.

Time-Invariant Covariates vs. Time-Varying Covariates

Covariates are variables of scientific interest because they may have an impact on the outcome of interest. These can be things that are constant or changing. If we study the process of quitting smoking, craving is a covariate because it is associated with the outcome. Cravings are time-varying covariates because they come and go almost constantly. Other items, like gender, may impact how much someone smokes while trying to quit, but a person’s gender is unlikely to change. For that reason, gender is considered a time-invariant covariate. NOTE: In the larger example on this page, gender is not considered in the model. It is only mentioned here to illustrate the difference.

Some covariates, like gender, are stable. Others, like cravings, change.

Time-Invariant Effects vs. Time-Varying Effects

The effect of a covariate can also vary (regardless of whether the covariate is time-varying or time-invariant). For example, in a hypothetical obesity intervention, let’s imagine that over the eighteen weeks of the program, 50% of men and 65% of women complete the program. In this case, gender would be a time-invariant covariate. This is useful information, but imagine that, during the first 4 weeks of the study 30% of men and 30% of women drop out. However, during the last 4 weeks, 20% of the men drop out and only 5% of the women drop out. If this were true, it would indicate that the effect of gender on adhering to the program varied tremendously in weeks 5 through 8. In this example, gender is still a time-invariant covariate, but it has a time-varying effect. In an instance like this researchers may want to examine the intervention to see if anything can be done to retain men during the latter half of the intervention. Alternately, if men were slightly more likely to drop out at every point in the study than women, gender would have a time-invariant effect.

Outcomes can vary over time. Outcomes are the last moving piece: they can also change over time. For example, a person who is trying to quit may smoke different numbers of cigarettes on different days.

The relationship between a covariate and the outcome may change over the course of a study. TVEMs can estimate this change.

Data Characteristics Needed for TVEM

TVEM can be used with different types of data structures, provided there is data across the time-span of interest.

Read about the data characteristics appropriate for TVEM HERE.

Data have a multilevel structure. For example, occasions are nested within individuals, who are nested within families, and families are nested within communities.

Other Significant Attributes of Intensive Longitudinal Data (ILD)

Effects vary not only across time but also between individuals. Different people may be affected differently by certain situations. For example, the relationship between mood and daily smoking may change over time and vary across individuals, because some people smoke in enjoyable social situations, but others smoke when they are alone and under stress.

The structure of the error process changes over time. The error variance may dramatically change over time, making the classic linear modeling assumption of a constant variance term untenable.

ILD have a multi-level structure. Effects vary between individuals.

Mathematical Model and Results

The Generalized Mathematical Model

Time-varying effect models (TVEMs) are a natural extension of linear regression models.

Read more HERE.

Results

The model is able to incorporate time-varying effects and time-invariant effects. In this study, one of the most interesting results related to the way that smoking urges changed over time for successful quitters, compared to those who eventually relapsed. For both groups, urge to smoke started out high, but for successful quitters (the dashed green line), the urges decreased steadily for several days and then continued to decrease slowly. For relapsers (the red line), the urge to smoke never decreased. Thus, researchers learned that early intervention may be warranted for quitters whose urges do not decrease in the first few days.

The modeling of time-varying effects in the %TVEM SAS macro can help remove bias from analysis of complex data. Sometimes while analyzing data, scientists make assumptions about the constancy of relationships or the shape of a curve without any knowledge of the true shape of the curve.

TVEM allows researchers to model complex change without assuming that the curve follows a parametric function. So, when researchers have no reason to assume a specific shape of the curve, %TVEM can help you avoid this potential source of bias. The %TVEM macro builds models based on the characteristics of the data, not on a priori assumptions.

graph

Reference

Shiyko, M. P., Lanza, S. T., Tan, X., Li, R., & Shiffman, S. (2012). Using the time-varying effect model (TVEM) to examine dynamic associations between negative affect and self confidence on smoking urges: Differences between successful quitters and relapsers. Prevention Science. PMCID: PMC3372905 doi: 10.1007/s11121-011-0264-z.

What Would Scientists Have Done Without TVEM?

The standard for modeling longitudinal data is a growth curve model. Obviously, there are many valuable applications of growth curve models, but the advantage of ILD or EMA data is that it can capture complex relationships and processes. While a growth curve model ignores this complexity, TVEM and other emerging methods embrace it.

Sometimes while analyzing data, scientists will make assumptions about the constancy of relationships or the shape of a curve without any knowledge of the true shape of the curve. If a scientist assumes linearity and is wrong, the results will be biased.

Future Applications of TVEM

In the future, the capacity to measure and model time-varying effects could alter the future of behavioral interventions. The better we understand complex relationships, the better able we will be to understand where problems arise and how to intervene at critical moments.