update_parameters: Update initial estimates to final estimates

Description Usage Arguments Value Examples

View source: R/update_parameters.R

Description

[Stable]

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# 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 Oct. 18, 2021, 1:08 a.m.