Learn R Programming

Certara.NLME8 (version 3.0.1)

UpdateMDLfrom_dmptxt: Update Model text file from NLME output File

Description

This function updates a model file with parameter estimates obtained from a dmp file (R structure format of output generated by NLME) text file. The updated model file includes the estimated fixed effects, error terms and random effects values.

Usage

UpdateMDLfrom_dmptxt(
  dmpfile = "dmp.txt",
  SharedWorkingDir = getwd(),
  model_file = "test.mdl",
  compile = TRUE,
  output_file = "test.mdx"
)

Value

The path to the updated model file.

Arguments

dmpfile

The path to the DMP text file.

SharedWorkingDir

The working directory. Used if dmpfile, model_file, output_file are given without path.

model_file

The name of the model file to be updated (with optional full path).

compile

A logical value indicating whether to compile the updated model file into NLME executable. Default is TRUE, it also overwrites model_file with updated estimates (i.e. making the same as output_file.)

output_file

The name of the new model file with updated estimates.

Details

TDL5 executable from NLME Engine is used. NLME engine location is identified by INSTALLDIR environment variable. The current function will give an error if TDL5 cannot be executed.