Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Use weight-based dosing for a population within add.dosing() #475

Description

@SGastine

Hi,
I have a new issue when using RxODE 1.1.5.
With the previous version I was able to pull in covariates from pre-defined populations into my event tables. Now I get an error message that dose within add.dosing can only have length 1.
It was quite a neat feature to simulated complex weight and bsa-based regimen. Is there a way to get this working again?

Thanks!
Silke

Here is my example code:

e_1 <-   et(id=sim.cov$id) %>%
  add.dosing(start.time = 0,dose = 600000*sim.cov$wt, nbr.doses = 14, dosing.interval = 8, dur=15/60) %>% 
  add.dosing(start.time = (5+9)*24,dose = 600000*sim.cov$wt, nbr.doses = 14, dosing.interval = 8, dur=15/60) %>%
  add.sampling(seq(from = 0, to = 24*21, by = 0.25)) %>%
  as.data.frame %>%
  merge(sim.cov, by="id") 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions