fix_or_unfix_parameters: fix_or_unfix_parameters

View source: R/functions_wrapper.R

fix_or_unfix_parametersR Documentation

fix_or_unfix_parameters

Description

Fix or unfix parameters

Set fixedness of parameters to specified values

Usage

fix_or_unfix_parameters(model, parameters, strict = TRUE)

Arguments

model

(Model) Pharmpy model

parameters

(list(str=logical)) Set fix/unfix for these parameters

strict

(logical) Whether all parameters in input need to exist in the model. Default is TRUE

Value

(Model) Pharmpy model object

See Also

fix_parameters : Fix parameters

unfix_paramaters : Unfixing parameters

fix_paramaters_to : Fixing parameters and setting a new initial estimate in the same

function

unfix_paramaters_to : Unfixing parameters and setting a new initial estimate in the same

function

Examples

## Not run: 
model <- load_example_model("pheno")
model$parameters['POP_CL']
model <- fix_or_unfix_parameters(model, list('POP_CL'=TRUE))
model$parameters['POP_CL']

## End(Not run)

pharmpy/pharmr documentation built on June 11, 2025, 11:56 a.m.