Open Chickenlover0908 opened 1 year ago
I would add it to the events data frame directly.
I'm unsure if you are having an issue with the rxSolve()
, confint()
or plot()
function.
Thank you, I have tried to add "age“ in event table, simulation works very smooth.
Great!
Hello, nlmixr team, thank you for solved my many questions before. I have fitted my model after your help, and have known more about this great package. Now I am simulating different dose with my model, but i have included one covariate “AGE”, which increase the difficulty of dose simulation. #84 has given a good method, but when I use “rxSolve”, there is one error --Error in fix.by(by.x, x) : 'by' must specify a uniquely valid column. I did not know how to solve the error, i need your help. Here is my syntax, I have tried two form:
sim.day4 <- rxSolve(fit1801, events = day4ev_75ppm, nSub = 100, iCov = data.frame(AGE = 1))
“fit1801” is my nlmixr fit result and my event table is below:
And when i use your syntax, there still this error:
How can I solve this error? Thank you very much!!!!