Learn R Programming

NMproject (version 0.6.9)

update_parameters: Update initial estimates to final estimates

Description

[Stable]

Usage

update_parameters(ctl, from)

Value

An nm object with modified ctl_contents field.

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.

Examples

Run this code

# 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
if (FALSE) {
m1 %>% run_nm() %>% wait_finish()
m1 <- m1 %>% update_parameters()
m1 %>% dollar("THETA")
}

Run the code above in your browser using DataLab