Hello everyone,
I have a baseline parameter from a PD model which follows a bimodal distribution depending on wether the patient has one type of tumor or the other.
I wrote the code like this:
sequence{T=BASE}
covariate(Type())
stparm(BASE = (tvBASE1*(Type==1)+tvBASE2*(Type==0))*exp(nBASE))
fixef(tvBASE1 = c(0,10,))
fixef(tvBASE2 = c(0,50,))
Then, on my table, I map the covariate "Type" to a column of either 1 or 0. What I want to achieve is, if Tumor is Type==1, then baseline is tvBASE1, if tumor is Type==0, then baseline is tvBASE2. It does not seem to work. Do you have a suggestion about how I should code this?
Best,
Joao