Learn R Programming

pharmr (version 0.96.0)

set_power_on_ruv: set_power_on_ruv

Description

Applies a power effect to provided epsilons.

Initial estimates for new thetas are 1 if the error model is proportional, otherwise they are 0.1.

Usage

set_power_on_ruv(
  model,
  list_of_eps = NULL,
  lower_limit = 0.01,
  ipred = NULL,
  zero_protection = FALSE
)

Value

(Model) Pharmpy model object

Arguments

model

(Model) Pharmpy model to create block effect on.

list_of_eps

(str or array (optional)) Name/names of epsilons to apply power effect. If NULL, all epsilons will be used. NULL is default.

lower_limit

(numeric (optional)) Lower limit of power (theta). NULL for no limit.

ipred

(str (optional)) Symbol to use as IPRED. Default is to autodetect expression for IPRED.

zero_protection

(logical) Set to TRUE to add code protecting from IPRED=0

See Also

set_iiv_on_ruv

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
model <- set_power_on_ruv(model)
model$statements$find_assignment("Y")
}

Run the code above in your browser using DataLab