$PROBLEM 2-COMP Model with Prop Error and FOCE w/ INTER and ; Only IIV on Clearance and Q assumed $INPUT C ID EVID MDV TIME DV AMT RATE ISM AGE WT SCR CRCL $DATA Vanco_sample.csv IGNORE=C $SUBROUTINE ADVAN3 TRANS4 $PK V1WT = ( 1 + THETA(6)*(WT - 94.5)) V1COV=V1WT V2WT = ( 1 + THETA(7)*(WT - 94.5)) V2COV = V2WT CLCRCL = ( 1 + THETA(5)*(CRCL - 83)) CLCOV=CLCRCL TVV1 = THETA(1) TVV1 = V1COV*TVV1 V1 = TVV1 * EXP(ETA(1)) TVCL = THETA(2) TVCL = CLCOV*TVCL CL = TVCL * EXP(ETA(2)) TVQ = THETA(3) Q = TVQ * EXP(ETA(3)) TVV2 = THETA(4) * V2WT V2 = TVV2 * EXP(ETA(4)) S1 = V1 S2 = V2 $ERROR Y = F * (1 + EPS(1)) IPRED = F IRES = DV-IPRED IWRES = IRES $THETA (0, 26.5) ; V1 (0, 2.87) ; CL (0, 12) ; Q (0, 39) ; V2 (0, 0.0313) ; CLCRCL1 (0, 0.00817) ; V1WT1 (0, 0.0233,0.03) ; V2WT1 $OMEGA 0.0755 0.842 0 FIX 0 FIX $SIGMA 0.00695 ;MSFI=./.msf $ESTIMATION MAXEVAL=9999 PRINT=5 METHOD=1 INTER POSTHOC MSFO=./321.msf $COVARIANCE PRINT=E ; Xpose $TABLE ID TIME DV MDV EVID IPRED IWRES CWRES ONEHEADER NOPRINT FILE=sdtab321 $TABLE ID CL V1 V2 Q ETA1 ONEHEADER NOPRINT FILE=patab321 $TABLE ID WT CRCL AGE SCR ONEHEADER NOPRINT FILE=cotab321 $TABLE ID ISM ONEHEADER NOPRINT FILE=catab321