Biostatistics 236 Modeling Longitudinal Data

Spring 2024 - Robert Weiss

 


News & Announcements:

  • No lab 9 or 10 -- informal office hours. 
  • A new Lab 8 is posted. A Bayesian Logistic Random Intercept Model for the Kenyan School Lunch Morbidity Data. 
    • You will need to download and install JAGS, ideally before the lab. See instructions at the top of the R code. Note that I have a windows laptop, and am not sure how instructions might differ for Apple. (Added AddBurnin.RData 5/20).
  • Class + lab was canceled on May 2nd. We will have labs on May 6, 8 and 13. 
  • Lecture recording 2024/04/29 had internet dropping out frequently, but hopefully sound worked.
  • Lecture recording on 2024/04/24 sound was not working. Have tested sound, hopefully works today 2024/04/29. 
  • Quick summary of useful graphics
  • Suggestion: Wear a mask. Then we don't share infectious diseases (flu, cold, RSV, Coronavirus, and all the other named and unnamed infectious diseases that we share by breathing). 
  • We have been moving to R for computer labs. Updates may be in progress 
  • Data Analysis Project Comments and General Advice.
  • Variance Covariance Choices
  • Let me know if any errors.
  • (Tentative) SAS Studio Introduction (word) Please follow instructions on first page and register for SAS Studio. Ideally immediately, but definitely before lab 8 Wednesday May 24th.
  • 2024 Syllabus has been posted.

Table of Contents


2024 Class Schedule, Email Addresses, and Office Hours:

For Zoom links see Syllabus

Event Time Day Room
Lecture 1:00 -- 2:50 Monday CHS 41-268
Lecture 1:00 -- 1:50 Wednesday CHS 41-268
Computer Lab 2:00 - 2:50 Wednesday CHS 41-268
Prof Robert Weiss robweiss@ucla.edu  
Office Hours Tuesday 4:00 -- 4:45 zoom
Office Hour Thursday 2:00 -- 2:45 zoom
TA Danielle LaVine djlavine@g.ucla.edu  
Office Hours 11:00 - 11:50 Monday zoom
  11:00 - 11:50 Wednesday zoom

Syllabus and Book CoverTextbook

2024 Syllabus has been posted. Includes 2024 HW due dates and 2024 grading system. Includes Zoom Links. 

The 2024 textbook is Modeling Longitudinal Data. The book web page has data and links to example code.

The textbook is available for download through the UCLA library Springer bookshelf. If you are off campus, you will need to VPN to campus to be able to download the book. When I type "Modeling Longitudinal Data" (without the quotes) into the search box at UCLA Library webpage, the book is the first item on the list.

 


Lecture Notes

Variance Covariance Choices.


Homework Assignments

Homeworks (PDFs)

Please turn in PDFs of your solutions on Bruin Learn. Due dates are on the syllabus.

All data Sets in both Text and SAS Formats

Homeworks (Original LaTeX)


Computer Labs in R for Learning Longitudinal Data Analysis


 

Computer Labs for Learning Longitudinal Data Analysis Using SAS


Data Sets


Discussion Questions


Lecture Contents

Lecture recordings posted to our BruinLearn Media Gallery (near bottom of BruinLearn menu bar).

Lecture topics from 2024 lectures to-date. For future dates, lecture topics are from previous year. 

  • Syllabus (non-lecture, pdf).
  • Lecture 01 Monday 2024_04_01. Syllabus. Lecture notes 1 intro pages 1-11. Lab 1 and lab 1 data sets. 
  • Lecture 02 Wednesday 2024_04_03. Lecture notes 1 pages 12-21 (Small Mice Data). 
  • Lecture 03 Monday 2024_04_08. Lecture notes 1 pages 21- 28. Lecture notes 2 Graphics pages 1-33. 
  • Lecture 04 Wednesday 2024_04_10. Lecture notes 2 Graphics pages 33-46. 
  • Lecture 05 Monday 2024_04_15. Lecture notes 2 pages 47-49. Lecture notes 3 simple methods pages 1-17. 
  • Lecture 06 Wednesday 2024_04_17. Lecture notes 3, multivariate normal model pages 18-30. 
  • Lecture 07 Monday 2024_04_22. Lecture notes 3 pages 31-40. Lab 4 discussion of annotated output for lab 4. 
  • Lecture 08 Wednesday 2024_04_24. Lecture notes 3 pages 41-48. Lecture notes 4 pages 1-5. 
  • Lecture 09 Monday 2024_04_29. Lecture notes 4 pages 6-18. RLab 5 selected output. 
  • Lecture 10 Wednesday 2024_05_01. Class canceled due to campus guidance. [Lab 5 covariance modeling moved to next lecture Monday May 6. ]
  • Lecture 11 Monday 2024_05_06. Lab 6 lecture. Lab 5 in second half of class period. 
  • Lecture 12 Wednesday 2024_05_08. Plots from lab 7. Also lecture notes 4 pages 19-22. 
  • Lecture 13 Monday 2024_05_13. Remote today. Lecture notes 4 pages 22-48.   
  • Lecture 14 Wednesday 2024_05_15. Finished lecture notes 4 covariates pages 48-69. Started lecture notes 5 covariance modeling pages 1 to 9. 
  • Lecture 15 Monday 2024_05_20. Lab 8 discussion, fitting a Bayesian model to discrete longitudinal data. Lecture notes 5 covariance modeling, pages 9 to 20.
  • Lecture 16 Wednesday 2024_05_22. Lecture notes 5 covariance modeling, pages 21 to top of page 41. 
  • Lecture 17 Monday 2024_05_27. Memorial Day Holiday
  • Lecture 18 Wednesday 2024_05_29.Lecture notes 5 covariance modeling, pages 41-42, Lecture notes 6, random effects modeling pages 1-8. 
  • Lecture 19 Monday 2024_06_03. Finished lectures notes 6, pages 8-33. 
  • Lecture 20 Wednesday 2024_06_05. Lecture notes 9, Bivariate Longitudinal Data, pages 1 to 17. 

Labs.

  • Lab 01 Wednesday 2024_04_03. Introduction, Data Management
  • Lab 02 Wednesday 2024_04_10. Graphics
  • Lab 03 Wednesday 2024_04_17. Simple Analyses
  • Lab 04 Wednesday 2024_04_24. Fitting Longitudinal Models
  • Lab 05 Wednesday 2024_05_01. Covariance Models
  • Lab 06 Wednesday 2024_05_08. Clustered Data
  • Lab 07 Wednesday 2024_05_13. Discrete Data
  • Lab 08 Wednesday 2024_05_22. Using Bayesian methods to fit longitudinal discrete data
  • Lab 09 Wednesday 2024_05_29. No lab, informal office hour. 
  • Lab 10 Wednesday 2024_06_05. No lab, informal office hour.

SAS Documentation