LAPKB / Pmetrics

https://lapkb.github.io/Pmetrics/
21 stars 8 forks source link

makePTA using Bayesians #38

Open mshaer-pkpd opened 3 years ago

mshaer-pkpd commented 3 years ago

Hello,

I am trying to calculate the PTA for every patient in my dataset (using the Bayesians). In the makePTA help in R, it is mentioned that PMpost is allowed as simdata argument. Tried running makePTA(simdata=post.run#) but got an error: Error in max(sapply(simdata, function(x) nrow(x$parValues))) : invalid 'type' (list) of argument Should this be entered in a different way in makePTA?

Thanks

PKPDICU commented 1 year ago

Hello, I have the same question and I try to use a PMpost object as a simdata in makePTA command This send me the following message :

Error in max(sapply(simdata, function(x) nrow(x$parValues))) : invalid 'type' (list) of argument

Do you have any solution ?

Thanks a lot