Copies model file to new model file
Usage
copy_model(
from,
to,
overwrite = FALSE,
ext_file = NULL,
update = "none",
jitter = NULL,
jitter_excluded = NULL,
seed = NULL,
description = NULL,
no_metadata = FALSE
)Arguments
- from
path to model file to copy or hyperion_nonmem_model object
- to
path to model file to write to
- overwrite
boolean, wheter to overwrite existing model. Default FALSE
- ext_file
path to ext file to use for parameter estimates
- update
character or character vector specifying which parameters to update from ext file. Options: "all", "none", "theta", "omega", "sigma". Examples: "all" or c("theta", "omega")
- jitter
numeric value or named numeric vector for parameter jittering using uniform distribution. Each parameter value is multiplied by a random factor between (1 - jitter%) and (1 + jitter%) with boundary enforcement. Examples: 0.1 (10% jitter on all params) or c("theta" = 0.05, "omega" = 0.1)
- jitter_excluded
character or character vector of parameter names to exclude from jittering. Examples: "THETA1" or c("THETA1", "OMEGA(1,1)")
- seed
integer for random number generator seed to ensure reproducible jittering
- description
Description of model in metadata file
- no_metadata
boolean, if true, does not create metadatafile, default FALSE