13.07.2015 Views

Pros and Cons of Bayesian Pharmacometric Modeling Using BUGS

Pros and Cons of Bayesian Pharmacometric Modeling Using BUGS

Pros and Cons of Bayesian Pharmacometric Modeling Using BUGS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>BUGS</strong>ModelLibraryUser-programmed modelsComponent Pascal code for matrix exponential modelPROCEDURE UserKMatrix(IN theta: ARRAY OF REAL; nCmt: INTEGER):POINTER TO ARRAY OF ARRAY OF REAL;VARkMatrix: POINTER TO ARRAY OF ARRAY OF REAL;i , j : INTEGER;CL, Q, V2, V3, ka, ke0, k10, k12, k21: REAL;BEGINNEW(kMatrix,nCmt,nCmt);FOR i := 0 TO nCmt−1 DO;FOR j := 0 TO nCmt−1 DO;kMatrix[ i , j ] := 0;END; END;CL := theta[0]; Q := theta[1]; V2 := theta[2];V3 := theta[3]; ka := theta[4]; ke0 := theta[5];k10 := CL/V2; k12 := Q/V2; k21 := Q/V3;(∗ Assign nonzero rate constants ∗)kMatrix[0,0] := -ka;kMatrix[1,0] := ka;kMatrix[1,1] := -(k10+k12);kMatrix[1,2] := k21;kMatrix[2,1] := k12;kMatrix[2,2] := -k21;kMatrix[3,1] := ke0;kMatrix[3,3] := -ke0;RETURN kMatrix;END UserKMatrix;x ′ =⎡⎢⎣⎤−k a 0 0 0k a − (k 10 + k 12 ) k 21 0⎥0 k 12 −k 21 0 ⎦ x0 k e0 0 −k e0c○2009 Metrum Institute <strong>Bayesian</strong> <strong>Modeling</strong> <strong>Using</strong> <strong>BUGS</strong> AAPS 2009 20 / 26

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!