BookmarkSubscribeRSS Feed
AlyseS
Calcite | Level 5

Is it possible to use proc quantreg for longitudinal data?

6 REPLIES 6
SteveDenham
Jade | Level 19

If all subjects are measured at all time points, you could get a very good longitudinal analysis by using a spline on the time effect.  This could be accomplished through the use of the EFFECT statement.  See Example 77.4 Nonparametric Quantile Regression for Oxone Levels in the PROC QUANTREG documentation.

Steve Denham

AlyseS
Calcite | Level 5

Thanks, Steve.  My data is not balanced, subjects are not measured at all time points.  Also, between subjects, the timepoints measured may be different.  Time 1 for subject X is at a different point than Time 1 for subject Y.  To be more detailed, I'm looking at markers of disease among controls and trying to plot deciles over time.  I want to use these as possible cutoffs to compare to diseased patients.

SteveDenham
Jade | Level 19

Mmm.  Well, you could "fluff" the data so that all time points are represented for all subjects, but with missing dependent values, and still get this to work.  At least it should work in principle.  I think that is the only way you are going to get to the quantile estimates.

Even if you were working for the mean estimate, PROC MIXED or GLIMMIX really would not like semi-sparse longitudinal data.  Can the times be binned, say by week or somesuch, to get around the unevenness?

Steve Denham

AlyseS
Calcite | Level 5

It is simply repeated measures so proc mixed handles it fine when I am looking for the mean estimate and use the repeated statement.  Right now time is in days, I could bin to weeks, but it doesn't really solve the issue.  Subject X could have the first measure at Week 2 while Subject Y has the first measure at Week 3.

gp4
Fluorite | Level 6 gp4
Fluorite | Level 6

This is an old thread.  Has any progress been made?  Is there a way, with SAS, to carry out quantile regression with longitudinal data?  The Effect option on proc quantreg was mentioned but that doesn't account for the serial dependence in the data.

vstorme
Obsidian | Level 7
I have the same question.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 3013 views
  • 1 like
  • 4 in conversation