[Stable]

update_parameters(ctl, from)

Arguments

ctl

An nm object.

from

Optional nm object. The completed object from which to extract results. If not specified, from will be taken to be ctl.

Value

An nm object with modified ctl_contents field.

Examples


# create example object m1 from package demo files
exdir <- system.file("extdata", "examples", "theopp", package = "NMproject")
m1 <- new_nm(run_id = "m1", 
             based_on = file.path(exdir, "Models", "ADVAN2.mod"),
             data_path = file.path(exdir, "SourceData", "THEOPP.csv"))
             

m1 %>% dollar("THETA")
#> $`execute.Models/m1`
#>   1| $THETA
#>   2| .....          	; KA ; h-1 ; LOG
#>   3| .....          	; K  ; h-1 ; LOG
#>   4| .....          	; V  ; L ; LOG
#>   5| 
#> 

## requires NONMEM to be installed
if (FALSE) {
m1 %>% run_nm() %>% wait_finish()
m1 <- m1 %>% update_parameters()
m1 %>% dollar("THETA")
}