Open rikardn opened 5 years ago
By default xpose4 expects the 'standard' parameters to be found in NONMEM table output. This includes IWRE, IPRE, TIME, and the NONMEM default items (DV, PRED, RES and WRES) that are added when NOAPPEND is not present in the $TABLE record. If you remove NOAPPEND then your example should work.
WRES is used to filter non-observation rows from NONMEM table files. I suppose that CWRES, if present, could be used instead of WRES in future releases. But currently this is not the case.
(I guess MDV could be used as well.)
It would be of great help if xpose could give an error message here pointing the user to what is missing.
Yes. Agree. I think there is some good logic in xpose that we can use here (check for EVID as well).
I run a simple model (pheno) with the following table:
$TABLE ID MDV TIME DV IPRED PRED RES CWRES NOAPPEND NOPRINT ONEHEADER FILE=sdtab1
Loading into an xpose4 database and doing
xpose4::dv.preds.vs.idv(xpdb)
caused xpose4 to crash with the following backtrace:Adding the column
WRES
to the $TABLE stops it from crashing.