How to deal with missing data in PROC TRAJ

Reply
Occasional Contributor
Posts: 16

How to deal with missing data in PROC TRAJ

A colleague is working on a latent trajectory model using PROC TRAJ. She had it running until she tried added "METHOD = FIML" (which she got from a Paul Allison paper using it in PROC REG and other PROCS). She's tried it at different points in the first line line after "work.Laura" (see below), but it doesn't run. Again, was running before that. We're getting error 22-322

Is it known whether "METHOD = FIML" works with PROC TRAJ? We haven't been able to find anything about it online? Thanks in advance!

"ERROR 22-322: Syntax error, expecting one of the following: ;, (, ALTSTART, CI95M, CI99M,

              DATA, FLEXVAR, ITDETAIL, NDERIV, NOPRINT, NOVAR, OUT, OUTEST, OUTPLOT, OUTPLOT2,

              OUTPLOT3, OUTPLOT4, OUTPLOT5, OUTPLOT6, OUTSTAT, OUTSTAT2, OUTSTAT3, OUTSTAT4,

              OUTSTAT5, OUTSTAT6, SCOREMETHOD, TRACE, XXCONSTR2."

Code is below

proc traj data = work.Laura method=fiml out=out outstat=os outplot=op;

      model cnorm ;

      var TotalVicT1 - TotalVicT8 ; /* Change outcome var here */

      indep T1-T8 ; /*Change time indicator here */

      ngroups 1 ;

      id ID ;

      min 1; /* Min for censoring; Default = 0 */

      max 4; /* Max for censoring; Default = + infinity */

      order 1 ; /* Quadratic polynomial for each group */

                        /* Must have one entry defining curve type for each group

                        e.g., if ngroup = 3, then order = 1 1 1 */

                    /* Polynomial (0=intercept, 1=linear, 2=quadratic, 3=cubic)

                        for each group, e.g. ORDER 2 2 2 0; If omitted, cubics are

                        used by default. */

      *rorder 1; /* Random growth curve params; -1= note */

                        /* You only set one of these for the whole model: WHY? */

run;

%trajplot (OP, OS, “Child Report” “Item 1: Pick on”, “Pick on: 1 trajectory”, “Time”);

Respected Advisor
Posts: 2,655

Re: How to deal with missing data in PROC TRAJ

You will probably have to contact the authors of PROC TRAJ (Nagin and Jones, at Carnegie Mellon) as this PROC is not from SAS.  Consequently, the Firth adjustment may not be available unless they have updated the procedure.

Steve Denham

Ask a Question
Discussion stats
  • 1 reply
  • 522 views
  • 0 likes
  • 2 in conversation