I tried to fit a one compartment population PK model using clinical data but I kept having warning massage. I have tried to run the two compartments population PK examples provided in this github and experienced the problem as following:
showing 10 of 6187 rows (change via 'max_rows' argument)
Warning messages:
1: In .subset2(x, "print")(...) : NAs introduced by coercion
2: In .subset2(x, "print")(...) : NAs introduced by coercion
I think this issue generate error massage when plotting some diagnostic plots as following:
Error: Some 'pars' don't match parameter names: CL, Q, V1, V2, ka FALSE
Run rlang::last_error() to see where the error occurred.
ggsave(file.path(figDir, "density.pdf"))
Saving 13.6 x 5.89 in image
p <- mcmc_pairs(fit$draws(), pars = c("CL", "Q", "V1", "V2", "ka", "sigma"),
off_diag_args = list(size = 1, alpha = 0.5))
Error: Some 'pars' don't match parameter names: CL, Q, V1, V2, ka FALSE
Run rlang::last_error() to see where the error occurred.
ggsave(file.path(figDir, "pair.pdf"), p, width = 10, height = 8)
Error in grid.draw(plot) : object 'p' not found
I am using Mac Pro macOS Mojave V. 10.14.6 (18G6032).
I tried to fit a one compartment population PK model using clinical data but I kept having warning massage. I have tried to run the two compartments population PK examples provided in this github and experienced the problem as following:
// poppk2cpt example
showing 10 of 6187 rows (change via 'max_rows' argument)
Warning messages: 1: In .subset2(x, "print")(...) : NAs introduced by coercion 2: In .subset2(x, "print")(...) : NAs introduced by coercion
I think this issue generate error massage when plotting some diagnostic plots as following:
Error: Some 'pars' don't match parameter names: CL, Q, V1, V2, ka FALSE Run
rlang::last_error()
to see where the error occurred.I am using Mac Pro macOS Mojave V. 10.14.6 (18G6032).
Your help appreciated.