Dear LLLi,
There are several ways to do this, I am attaching a project so you can see how I wrote it. In essence,
I first created IsNull variables for P2, T1, and T2 then wrote the condition as
I can not open your project. Did you use Phoenix 7? Mine is version 6.4.
I was told “The project you are trying to open was created with a newer version of Phoenix (7.0.0.2535) and might not open correctly. Would you like to try to open the project anyway?” After click yes, the phoenix has stopped working.
How to get Phoenix 7? Just download the new software? Any fee for the update?
Hello,
Attached is the same project created with Phoenix WinNonlin 6.4. Hope this works for you.
Regarding Phoenix 7, you can download the new version from the Support site and if you have a
current valid license it will transfer it automatically for you. It has some nice new
graphing features so give it a try
Thank you for your reply! Your version is very simple but works! I am impressed…
Would you please introduce me some materials about the if statement? I didn’t find much information in the Phoenix Data Tools and Plots Guide. Thank you!
I really don’t know how to help you with if statement.
Honestly speaking the structure of if statement in Data Wizard is very close to the if statement in Excel. So if you have some experience in Excel you can just use it.
LLLi, my tip would be that you can simply click anywhere in the Function list and having found the function you want (pressing i will take you to if for instance).
then you can click and drag that to the Formulat box and you will get the example syntax;
if(conditional,true,false)
once you follow that you realise it’s quite easy to nest statements or combine with other functions e.g. IsNull.
I have a very complex condition to deal with here. In my project attached, each subject have 1 or 2 time points (week2 and/or week6) and corresponding parameters P1, P2 P3 and a flag (Y or N).
I want to get a new set of P1, P2, and P3.
The condition is: for each subject,
if subjects only have one week, the new parameter = the previous parameter.
If there are two weeks,
if both flags for two weeks are Y or N, the new parameter = the parameters at week 6.
if one flag=Y and one flag=N then keep the parameter when flag=Y
Hopefully I explain the condition clearly. Can Data Wizard do this job?