Dear Raj
I think that this code would work. It is based on the principle of superposition.
A demo project is attached. The idea is that we have an equation for IV and an equation for oral. The principle of superposition for linear kinetics allows us to add the 2 components. I used multiple dose to show that it should work also for multiple doses.
Let me know if it is helpful.
The template equation can be obtained by looking at model text for the 1c IV and then 1c Oral. You need to define A1frompo for the amount based on oral as you cannot use twice the same name and A1 is already used.
therefore you have
C = (A1+A1frompo) / V
Note that you can use graphical to emulate this combined route but then the program will shift to diff equations. Here it is going to use the analytical solution (closed form).
Best
Serge
test(){
cfMicro(A1, Cl / V)
dosepoint(A1)
C1=A1/V
C1frompo=A1frompo/V
cfMicro(A1frompo, Cl / V, first = (Aa = Ka))
dosepoint(Aa)
C = (A1+A1frompo) / V
error(CEps = 0.1)
observe(CObs = C * (1 + CEps))
stparm(V = tvV * exp(nV))
stparm(Cl = tvCl * exp(nCl))
fixef(tvV = c(, 50, ))
fixef(tvCl = c(, 5, ))
stparm(Ka = tvKa * exp(nKa))
fixef(tvKa = c(, 1, ))
ranef(diag(nV, nCl, nKa) = c(0.1, 0.1, 0.1))
} [file name=one_equation_single_dose_IV_and_oral_official.phxproj size=1006662]http://pharsight.com/extranet/media/kunena/attachments/legacy/files/one_equation_single_dose_IV_and_oral_official.phxproj[/file]