BookmarkSubscribeRSS Feed
YYK273
Obsidian | Level 7

Hi SAS Community,

I’m currently working on a project that involves 20 imputed datasets, and I need to perform group-based trajectory modeling using PROC TRAJ (MODEL zip) . I’ve found limited reference publications on using PROC TRAJ with multiple imputations and would greatly appreciate any advice or guidelines.

Here are my specific questions:

  1. Should I analyze each imputed dataset separately using PROC TRAJ? 
  2. Once the trajectories are estimated for each dataset, what is the best way to combine the results? Are there specific examples for pooling results?
  3. Are there any best practices, resources, or examples you can point me to for guidance on this?

Thank you so much in advance for your help! Looking forward to hearing your insights.

 

1 REPLY 1
Ksharp
Super User

If PROC TRAJ support BY statement, you could use it by 

proc traj data=have;

by _imputed_;

.....
run;

Or you can split this dataset into many sub-dataset and run it under proc traj:

proc traj data=have(where=(_imputed_=1));

.....

run;

proc traj data=have(where=(_imputed_=2));

.....

run;

 

 

 

 

  1. Should I analyze each imputed dataset separately using PROC TRAJ? 

Yes. You should as I showd above.

 

  1. Once the trajectories are estimated for each dataset, what is the best way to combine the results? Are there specific examples for pooling results?

Once you could get StdErr of Parameters , you could get POOLED parameters.

proc mianalyze data=Binomial;
  modeleffects _BIN_;
  stderr E_BIN;
run;

 

  1. Are there any best practices, resources, or examples you can point me to for guidance on this?

Check UCLA website:

https://stats.oarc.ucla.edu/sas/seminars/multiple-imputation-in-sas/mi_new_1/

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—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
  • 1 reply
  • 759 views
  • 1 like
  • 2 in conversation