Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the...

14
Analyzing Analyzing Longitudinal Data Longitudinal Data PART I PART I Computerized Delivery of Computerized Delivery of Cognitive Behavior Therapy Cognitive Behavior Therapy – Beat the Blues – Beat the Blues

Transcript of Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the...

Page 1: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

Analyzing Analyzing Longitudinal DataLongitudinal Data

PART IPART I

Computerized Delivery of Computerized Delivery of Cognitive Behavior Therapy – Cognitive Behavior Therapy –

Beat the BluesBeat the Blues

Page 2: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

Clinical Depression

• Major public health problem• Treatments:

– Antidepressants – may not respond, lack of medical compliance• Side effects include sexual dis-performance,

lack of emotions, stupor.

– CBT – Cognitive Behavioral Therapy• Psychotherapy, the modern “talking

treatments”• High demand for it, lack of availability.

Page 3: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

Alternative Modes of Delivery

• Therapist replaced by a computer (Terminal client program: Beat the Blues)

• Main question: does the treatment still work.

Page 4: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

The Setup

• Blues Program– Blues program– Pharmacology and/or general practice

with the exception of face-to-face counseling or psychological intervention

• TAU (Treatment as Usual)– Whatever treatment their GP

prescribed. I.e. medication, discussion of problems with GP, provision of practical/social help, referral to counselor/practitioner, or other examiners.

Page 5: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

Possible Variables

• Beck Depression Inventory II (BDI)• Measured at several times:

– Before treatment– 2 Months after the beginning– At 1, 3, 6 month follow up (after the

two months)

Page 6: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

Analyzing Longitudinal Data

• Longitudinal setup since variables are measured several times on each individual in the study.

• These measurements will most likely not be independent, hence correlated.

• Unique analysis needed to account for this.

Page 7: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

Linear Mixed Effects Models for Repeated

Measures Data• Uses the idea that an individual

pattern of responses is likely to depend on many characteristics of that individual that may or may not be known.

• Two common forms.

Page 8: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

Random Intercept Model

• yij= β0 + β1tj + ui + εij

• Total residual is partitioned into a subject-specific random component.

• ui is constant, normally distributed with zero mean, variance = δ2.

• Ui and εij are independent of each other and time. And ui considered the random intercept.

• The ui acts to model heterogenity in the intercepts

Page 9: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

Random Slope and Intercept Model

• yij= β0 + β1tj + ui + vitj + εij

• We still have the ui term to explain the heterogeneity in the intercepts, but also the viti term to explain the heterogeneity in the slope parameters.

Page 10: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

Analysis Using R

Page 11: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

Fitting the Data so it frames “the long form”

(each separate repeated measure and associated covariate values appear as a

separate row)

Page 12: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

data("BtheB", package = "HSAUR")> BtheB$subject <-factor(rownames(BtheB))> nobs<-nrow(BtheB)> BtheB_long<- reshape (BtheB, idvar = "subject",+ varying = c("bdi.2m", "bdi.4m", "bdi.6m", "bdi.8m"), direction = "long")> BtheB_long$time <-rep(c(2,4,6,8), rep(nobs, 4))

> subset (BtheB_long, subject %in% c("1", "2", "3")) drug length treatment bdi.pre subject time bdi1.2m No >6m TAU 29 1 2 22.2m Yes >6m BtheB 32 2 2 163.2m Yes <6m TAU 25 3 2 201.4m No >6m TAU 29 1 4 22.4m Yes >6m BtheB 32 2 4 243.4m Yes <6m TAU 25 3 4 NA1.6m No >6m TAU 29 1 6 NA

Page 13: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

Run log-likelihood test

• Test two different models– Random intercept – one random effect

(intercepts)– Random slope and intercept model – two

random effects (intercepts and slopes)

– Conclusion: simpler random intercept model is adequate

Page 14: Analyzing Longitudinal Data PART I Computerized Delivery of Cognitive Behavior Therapy – Beat the Blues.

Results from random intercept model

• pg. 168• We find that time and the Beck

Depression Inventory II values (bdi.pre) measured at baseline are significant (the coefficients are not equal to zero.

• No evidence that the other three covariates differ from zero.

• No clear evidence of treatment effect