code for covariate

Hi,

If the tvCL = theta1 + theta2*CrCL

CL = tvCL * exp(nCL)

I tried the following but it says “variable ‘tvCL’ multiple definition” in the warnings tab

covariate (CrCL)

tvCL = Theta1 + Theta2*CrCL

stpartm(CL = tvCL * exp (nCL))

how do I write the code that can define the tvCL with a function that includes a covariate?

Thanks!

Dear sinyinlim,

In the modeling language guide you might want to read about the group syntax.

it allows you to use parameter definition on multiple lines.

Samer

Hi,

try if the following works..

fcovariate (CrCL)

stpartm(CL = tvCL Theta2CrCL* exp (nCL))

fixef(tvCL= c(, XX, ))

fixef(theta2= c(, XX, ))