The restrict function is usefull to get a restricted version of your model to some condition.

restrict(env, condition, catch = TRUE)

create_cohort(env, condition, catch = TRUE)

Arguments

env

An AnalysR model

condition

A condition

catch

Explicit if argument should be catch via enexpr (not mandotary)