Skip to contents

Model adherence as a binomial probability at the time of each occasion.

Usage

adherence_binomial(n = 100, prob)

Arguments

n

number of occasions

prob

binomial probability

Value

Returns a vector of length n containing values 0 (non-adherent) or 1 (adherent).

Numeric vector of length n