I have a few questions about user-defined models
1. What is the exact executing sequence of all the code blocks (e.g. Temporary, Start, Transform, Function etc)?
2. Are the WinNonlin variables (e.g. F, WT, X, Y) are global variables that are accessible in any code block? I used "WT" as a variable symbol to store body weight data in "Diff" block and it doesn't seem to affect the weighting scheme.
3. To follow up question two, in the User's guide, p244
MODEL 1
TRANSFORM
IF X > 10 THEN
WT = 1/Y
ELSE
WT = 1/(Y*Y)
ENDIF
END
My question is if I can use "F" instead of Y to specify a re-weighting scheme in Transform block. Or alternatively can I use the "IF THEN" structure in Function block to specify different weighting schemes. This question also goes back to question 2, is F a global variable?
4. I understand the "Diff" block runs to the last X variable. I want to code it in a way that the "Diff" system can run to an extended arbitrary time point which is determined dynamically in the estimation process. I see a clumsy way to do it is to insert a dummy time point in the data set. But I want it in a more flexible way. I noticed in the User's guide there is an XARRAY variable. How do I access to that?
So much for the first time. Appreciate your commets.
Jun Shen
Senior Pharmacokineticist
Seventh Wave Labs