powered by
Check if an expression defines a binary variable (only having values 0 and 1)
is_binary(model, expr)
(logical) TRUE if binary
(Model) Pharmpy model
(str) A mathematical expression containing column or variable names
if (FALSE) { model <- load_example_model("pheno") is_binary(model, "WGT") is_binary(model, "FA1") }
Run the code above in your browser using DataLab