fix_parameters_and_replace_model: Fix parameters and overwrite the model with the updated fixed...

View source: R/fix_parameters_and_replace_model.R

fix_parameters_and_replace_modelR Documentation

Fix parameters and overwrite the model with the updated fixed parameters

Description

What the title says. A model file and a character vector of parameters to be fixed has to be provided

Usage

fix_parameters_and_replace_model(
  dir_input_files,
  input_model_files,
  parameters_to_fix,
  init_values_to_fix
)

Arguments

dir_input_files

character of length 1. Contains path to directory containing the input model files. Defaults to "".

input_model_files

character vector of length 1 or n equal to the number of input files. Contains name(s) of model(s) to be changed with some fixed parameters

parameters_to_fix

character of length 1 or p equal to the number of parameters to be fixed. Contains the names of the parameters to be fixed.

init_values_to_fix

character of length 1 or p equal to the number of parameters to be fixed. Contains the initial values of the parameters to be fixed.

Value

New .mod files created

Examples

#' \dontrun{fix_parameters_and_replace_model("../NONMEM/","run1.mod",c("KG","EMAX"))}

Vincent-AC/vacactions documentation built on Aug. 22, 2023, 2:33 p.m.