Learn R Programming

pharmr (version 1.4.0)

set_simulation: set_simulation

Description

Change model into simulation model

Usage

set_simulation(model, n = 1, seed = 64206)

Value

(Model) Pharmpy model object

Arguments

model

(Model) Pharmpy model

n

(numeric) Number of replicates

seed

(numeric) Random seed for the simulation

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
model <- set_simulation(model, n=10, seed=1234)
steps <- model$execution_steps
steps[1]
}

Run the code above in your browser using DataLab