Learn R Programming

pharmr (version 0.96.0)

update_inits: update_inits

Description

Update initial parameter estimate for a model

Updates initial estimates of population parameters for a model. If the new initial estimates are out of bounds or NaN this function will raise.

Usage

update_inits(model, parameter_estimates, move_est_close_to_bounds = FALSE)

Value

(Model) Pharmpy model object

Arguments

model

(Model) Pharmpy model to update initial estimates

parameter_estimates

(array) Parameter estimates to update

move_est_close_to_bounds

(logical) Move estimates that are close to bounds. If correlation >0.99 the correlation will be set to 0.9, if variance is <0.001 the variance will be set to 0.01.

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
results <- load_example_modelfit_results("pheno")
model$parameters$inits
model <- update_inits(model, results$parameter_estimates)
model$parameters$inits
}

Run the code above in your browser using DataLab