Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beginning Test Run #73

Open
jeslo328 opened this issue Jul 27, 2023 · 0 comments
Open

Beginning Test Run #73

jeslo328 opened this issue Jul 27, 2023 · 0 comments

Comments

@jeslo328
Copy link

Hello
Im trying PKPDSim and ran the below code as in the site:
install.packages("PKPDsim")
library(PKPDsim)
library(ggplot2)

pk2 <- new_ode_model(
code = "dAdt[1] = -(CL/V) * A[1]",
obs = list(cmt = 1, scale = "V"),
dose = list(cmt = 1)
)
r2 <- new_regimen(
amt = 100,
n = 5,
interval = 12,
type = "infusion",
t_inf = 2
)
dat2 <- sim(
ode = pk2,
parameters = p,
regimen = r2,
only_obs = TRUE
)
ggplot(dat2, aes(x = t, y = y)) +
geom_line()

pkpdsim_Test1 compared to the ones in the site

Can you help advice what is not right here please
Thank you
Jesmin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant