R/adherence.R
adherence_binomial.Rd
Model adherence as a binomial probability at the time of each occasion.
adherence_binomial(n = 100, prob)
number of occasions
binomial probability
Returns a vector of length n containing values 0 (non-adherent) or 1 (adherent).
n
Numeric vector of length n