You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When run got the NM error: RANDOM VARIABLE IS DEFINED IN A NESTED IF STRUCTURE.
Fixed the problem by modified the output code from piraid from:
IF (PSI_MODEL.EQ.1) THEN
BASE=THETA(233)+ETA(1)
SLP=THETA(234)+ETA(2)
PSI=BASE+SLP*TIME
ELSE IF (PSI_MODEL.EQ.2) THEN
BASE=THETA(235)+ETA(3)
SLP=THETA(236)+ETA(4)
PSI=BASE+SLP*TIME
ENDIF
to
IF (PSI_MODEL.EQ.1) THEN
BASE=THETA(233)+ETA(1)
SLP=THETA(234)+ETA(2)
PSI=BASE+SLP*TIME
ELSE
BASE=THETA(235)+ETA(3)
SLP=THETA(236)+ETA(4)
PSI=BASE+SLP*TIME
ENDIF
Models run without NM error after.
The text was updated successfully, but these errors were encountered:
> IF (PSI_MODEL.EQ.1) THEN
> BASE=THETA(233)+ETA(1)
> SLP=THETA(234)+ETA(2)
> PSI=BASE+SLP*TIME
> ELSE IF (PSI_MODEL.EQ.2) THEN
> BASE=THETA(235)+ETA(3)
> SLP=THETA(236)+ETA(4)
> PSI=BASE+SLP*TIME
> ELSE IF (PSI_MODEL.EQ.3) THEN
> BASE=THETA(237)+ETA(5)
> SLP=THETA(238)+ETA(6)
> PSI=BASE+SLP*TIME
> ELSE IF (PSI_MODEL.EQ.4) THEN
> BASE=THETA(239)+ETA(7)
> SLP=THETA(240)+ETA(8)
> PSI=BASE+SLP*TIME
> ELSE IF (PSI_MODEL.EQ.5) THEN
> BASE=THETA(241)+ETA(9)
> SLP=THETA(242)+ETA(10)
> PSI=BASE+SLP*TIME
> END IF
to
> IF (PSI_MODEL.EQ.1) THEN
> BASE=THETA(233)+ETA(1)
> SLP=THETA(234)+ETA(2)
> PSI=BASE+SLP*TIME
> ENDIF
> IF (PSI_MODEL.EQ.2) THEN
> BASE=THETA(235)+ETA(3)
> SLP=THETA(236)+ETA(4)
> PSI=BASE+SLP*TIME
> ENDIF
> IF (PSI_MODEL.EQ.3) THEN
> BASE=THETA(237)+ETA(5)
> SLP=THETA(238)+ETA(6)
> PSI=BASE+SLP*TIME
> ENDIF
> IF (PSI_MODEL.EQ.4) THEN
> BASE=THETA(239)+ETA(7)
> SLP=THETA(240)+ETA(8)
> PSI=BASE+SLP*TIME
> ENDIF
> IF (PSI_MODEL.EQ.5) THEN
> BASE=THETA(241)+ETA(9)
> SLP=THETA(242)+ETA(10)
> PSI=BASE+SLP*TIME
> ENDIF
Tried to add two complementary LV models as follows:
When run got the NM error: RANDOM VARIABLE IS DEFINED IN A NESTED IF STRUCTURE.
Fixed the problem by modified the output code from piraid from:
to
Models run without NM error after.
The text was updated successfully, but these errors were encountered: