It works if I drop the :evid column, although I then get a warning.
If I convert the population back to dataframe with DataFrame(data_pop) I get the following
Hm, ok, I subsetted the dataframe with dosegrp > 0 and then it works. How would I set up a PD dataset with placebo data, i.e. dose = 0 to fit something like a turnover model?
Thank you for getting back to me. I don’t want to add a model without a dose. It’s just that some subjects get a placebo while others get an active dose and for all of them some PD marker is measured. And I want to model all of them to not only get the baseline of the marker but also the effect after increasing doses.
This is PD data and should inform a turnover model, for instance. And there the placebo subjects do contribute to informing kin and kout as well as the random effects of these parameters.
I think what @andreasnoack is saying is that you should filter out the dose rows for the placebo subjects (i.e., rows with evid=1 and amt=0). You can leave the observation rows (evid=0) for those subjects so that they contribute information, and of course for treated subjects you would include both doses and observations. Does this make sense?