Back to the Top
Hi,
I will really appreciate if some could provide me info on how to write "if then else" function in
Phoenix 6.4.
I am also seeking input on different ways to limit the estimates of typical values of theta to below
a certain value. I have given bounds to the initial estimates but I am getting final estimates
higher than my upper bound.
Looking forward to suggestions.
Renu
Back to the Top
Hello Renu,
The If statement in Phoenix 6.4 can be accessed via the Data Wizard>Transformation>Custom
The syntax is like Excel:
If(logical_statement,then do this, else do this)
Example
If(conc='BQL',0,conc)
This forces you to map a variable to 'conc' (it can have a different name). It reads 'If
concentration is equal to BQL set it to 0 else set to the value of variable conc'. It creates a new
column that you specify the name. Character data in the IF statement need quotes around it. There
should be no spaces between If and the parenthesis.
Embedded IF-statements are also allowed
If(Subject<>1,conc,if(conc=0,'BQL',conc))
Subject and conc variables need to be mapped then the tool will interpret this as 'If subject is not
1, then set the new column to the value of conc, else, if subject=1 and conc equals zero, set the
new column value to 'BQL' else (i.e. subject=1 but concentration not equal to 0) set the new column
value to 0'.
Hope this helps,
Ana Henry
Certara Int.
Back to the Top
I would like to clarify that if the question about ' if and then' statements in Phoenix 6.4 refers
to Pharsight Modeling Language, the syntax is different than the UI.
The PML syntax is as follows
if (Aa < 2){
Aa = Aa + some_dose_amount
} else {
} }
Ana Henry
Back to the Top
Hi Renu,
If I read your message correctly you want an IF_then statement within your Phoenix model code,
depending what you are trying to achieve you might look at Sleep or Sequence, if you can post your
project on the forum we can try to help you in more specific terms
Get tips and discuss Phoenix with other users; www.certara.com/forums
Best regards,
Simon.
Simon.Davis.-a-.certara.com
Senior Scientific Consultant
Pharsight- A Certaraâ„¢ Company
PharmPK Discussion List Archive Index page |
Copyright 1995-2014 David W. A. Bourne (david@boomer.org)