Jump to content


Photo
- - - - -

user definition for user defined Tabove in NCA?

NCA Thigh Tabove

  • Please log in to reply
3 replies to this topic

#1 dan.hines

dan.hines

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 12 November 2019 - 06:30 PM

If I wanted to cfalculated the time spent above a given concentration as a user defined parameter that is to be included in my NCA analysis, what would I input under the definition?



#2 Simon Davis

Simon Davis

    Advanced Member

  • Administrators
  • 1,318 posts

Posted 13 November 2019 - 06:54 AM

If you are working in the NC module, you don't need to write your own formula, just use set your level in therapeutic response, then look in output for TimeHigh.  Simon.



#3 bwendt@certara.com

bwendt@certara.com

    Advanced Member

  • Administrators
  • 282 posts

Posted 13 November 2019 - 01:15 PM

Dan,

 

since you raise this question inside the PML forum, I assume you want a PML equivalent of the code that exists in the NCA module. Further I do assume we are talking about a simulation. In this particular case please try the following PML code to calculate time_above(ta):

real(ta1,ta2,sw1,sw2)
dt=0.1
    sequence{
sw1=0
ta1=0
sw2=0
ta2=0
while(1){
sw1=C>6000?1:0
ta1=ta1+dt*sw1
sw2=C>7000?1:0
ta2=ta2+dt*sw2
sleep(dt)
}
}
Note, this is an example showing 2 different thresholds. You can easily see how you can extend this on your own. If you have questions, please let us know.
 
Bernd


#4 dan.hines

dan.hines

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 13 November 2019 - 05:52 PM

Simon, Using the NCA module to calculate the time above a single conc threshold is where I came up with the idea of trying to to implement some code in the "user defined parameter" section of the NCA module. What I am trying to accomplish is calculating that "timeHigh" but for several different concentration values from the same object so that I can avoid copying and pasting the NCA and changing the conc value over and over which will eat up memory and seems to take long run times.

 

Thanks Bernd for sharing the PML code to scan several conc values for TA.

 

 

Dan






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users