Jump to content


Photo

code for covariate


  • Please log in to reply
2 replies to this topic

#1 sinyinlim

sinyinlim

    Member

  • Members
  • PipPip
  • 20 posts

Posted 23 August 2017 - 06:44 PM

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!



#2 smouksassi1

smouksassi1

    Advanced Member

  • Members
  • PipPipPip
  • 231 posts
  • LocationMontreal

Posted 23 August 2017 - 07:54 PM

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


  • sinyinlim likes this

#3 soujanya234

soujanya234

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 24 August 2017 - 03:45 PM

Hi,

try if the following works..

fcovariate (CrCL)

stpartm(CL = tvCL *Theta2*CrCL* exp (nCL))

fixef(tvCL= c(, XX, ))

fixef(theta2= c(, XX, ))

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!


  • sinyinlim likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users