Duplicate models

Create a single duplicate of a model

 

  1. Select the model in the list.

  2. Right-click the selected model and choose File actions > Duplicate from the menu.
    Or
    Select the Models > Duplicate model menu option.
    Or
    Click icon_duplicatemodel_1.png in the toolbar.

  3. DuplicateModel.png 

  4. In the Duplicate window, enter the model number in the New model number field.

  5. Change number of the Reference model for the new model, if desired.
    By default, this will take the name of the original model selected for duplicating.

  6. Adjust the Model description for the new model.

  7. Check the Change model name in... box to update the model name within sections of the model file itself with the new model number

  8. Check the Use final parameter estimates from reference model box to update parameter esti­mates in the new model to the ones estimated for the original model.

  9. Check the Make simulation box to make the copied model a simulation model.
    When checked, the estimation and covariance steps ($EST and $COV, if present) records are commented out with a semicolon, and a simulation record is inserted into the control file, e.g.:
    $SIM (12345) (54321) ONLY SIM.

  10. Check the Fix all estimates box to use the same estimates in the copied model as in the original.
    When checked, $THETA, $OMEGA, and $SIGMA records are modified with the addition of the text “FIX” to fix the parameter estimates, e.g.:
    $THETA
    (0, 1.5,4) FIX ;KA
    (0.1, 0.377,5) FIX ;V/F
    (0, 0.0327,1) FIX ;CL/F
    (-2, 1.98,2) FIX ;WT on KA

    $OMEGA
    0.281 FIX ; IIV KA
    0.0274 FIX ; IIV V/F
    0.0516 FIX ; IIV CL/F

    $SIGMA
    0.0256 FIX ; properr

Please note that, to correctly duplicate with updated parameter estimates, you are required to adhere to some coding guidelines, especially for the $OMEGA and $SIGMA blocks. See the “NONMEM tem­plate control file syntax” for more information.

After pressing the Duplicate button, a new model is created and opened in the editor.

Note:A useful output file generated when MSF option is used is called INTER, which is an easy read for­mat of the output from NONMEM. Iteration by iteration is listed so the analyst can get ideas for where the run is struggling.

Create multiple duplicates of multiple models

Select the Tools > Batch operations > Create n duplicates of model(s) menu option.
Or
Click icon_batch_6.png in the toolbar and select Create n duplicates of model(s) from the menu.

Creates multiple duplicates of multiple model files, with (optionally) updated run/table numbers and final parameter estimates.

BatchCreateNDuplicates_1.png 

  1. Select the model(s) to be duplicated from the Duplicate models list.

  2. Enter the Number of duplicates for each selected model in the field.

  3. Check the Change run-numbers in output/tables box to incrementally update the run numbers for each duplicate.

  4. Check the Use final parameter estimates from reference model box to update parameter esti­mates in the new models to the ones estimated for the original model.

 

Create a duplicate for MSF restart

A model can be duplicated for MSF restart. This means that the model file is duplicated, but an $MSFI record is added, parameter estimate blocks are commented out, and the $MSFO record is updated.

Restarting a NONMEM run using a MSF file requires that the original model included a MSF com­mand in the estimation record, e.g.:
$EST MAXEVAL=9999 PRINT=5 MSF=run4.msf METHOD=CONDITIONAL INTER 

When the MSF command is included in an estimation run, NONMEM will produce some additional files, two of which (run4.msf and run4_ETAS.msf) are used to restart a NONMEM run from where the previous run terminated using the control file created with this feature.

Note that the files run4.msf and run4_ETAS.msf must be copied into the root project folder directory from the previous run’s subdirectory, where complete output run records are stored, e.g., modelfit_dir4/NM_run1/run4.msf. Although run4_ETAs.msf is not required, NON­MEM will throw a warning if it is not in the root project directory.

  1. Select the model in the list.

  2. Right-click the selected model and choose File actions > Duplicate for MSF restart from the menu.
    Or
    Select the Models > Duplicate model for MSF restart menu option.
    Or
    Click icon_duplicatemsf.png in the toolbar.

  3. DuplicateforMSFRestart.png 

  4. In the Restart using MSF window, enter the model number for the duplicate model in the New model number field.

  5. Enter the name of the MSF file specified in the previous run’s $EST record in the Restart using MSF file field.

  6. Enter the filename for the New MSF file to create during the restart in the field.


Last modified date:12/17/20
Certara USA, Inc.
Legal Notice | Contact Certara
© 2020 Certara USA, Inc. All rights reserved.