UUPharmacometrics / assemblerr

Quickly assemble pharmacometric models
https://uupharmacometrics.github.io/assemblerr/
Other
10 stars 4 forks source link

$TABLE addition #16

Closed SCarter79 closed 3 years ago

SCarter79 commented 3 years ago

an automatic addition of the $TABLE would be great in future releases

sebastianueckert commented 3 years ago

This has been added now.

You can for example do the following:

m <- model() +
  input_variable("dose") +
  prm_log_normal("emax", median = 10, var_log = 0.09) +
  prm_log_normal("ed50", median = 50, var_log = 0.09) +
  algebraic(effect~emax*dose/(ed50 + dose)) +
  obs_proportional(~effect, var_prop = 1)

render(m, 
       tasks = tsk_estimation() + tsk_output(filename = "sdtab", variables = c("emax","ed50")))