BookmarkSubscribeRSS Feed
AlyseS
Calcite | Level 5

Is it possible to use proc quantreg for longitudinal data?

5 REPLIES 5
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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 5 replies
  • 2232 views
  • 0 likes
  • 3 in conversation