update_parameters: Update initial estimates to final estimates

View source: R/update_parameters.R

update_parametersR Documentation

Update initial estimates to final estimates

Description

[Stable]

Usage

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")

## requires NONMEM to be installed
## Not run: 
m1 %>% run_nm() %>% wait_finish()
m1 <- m1 %>% update_parameters()
m1 %>% dollar("THETA")

## End(Not run)

NMproject documentation built on Sept. 30, 2022, 1:06 a.m.