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.
UpdateMDLfrom_dmptxt(
dmpfile = "dmp.txt",
SharedWorkingDir = getwd(),
model_file = "test.mdl",
compile = TRUE,
output_file = "test.mdx"
)
The path to the updated model file.
The path to the DMP text file.
The working directory. Used if dmpfile
,
model_file
, output_file
are given without path.
The name of the model file to be updated (with optional full path).
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
.)
The name of the new model file with updated estimates.
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.