adherence: Compute the adherence

Description Usage Arguments Value Examples

View source: R/adherence.R

Description

Compute the adherence which is defined as ...

Usage

1
adherence(time, comp, id, cens)

Arguments

time

individual (and time dependent) times

comp

individual and time dependent compliances (0/1)

id

ids in the longitudinal dataset

cens

censoring indicator in the longitudinal dataset

Value

estimated compliance and adherence as a list of two dataframes

Examples

1
2
3
data(onco)
onco$compliance <- onco$observed >= onco$expected
adherence(onco$drel, onco$compliance, onco$id, onco$cens)

jpasquier/ad_test documentation built on Nov. 14, 2019, 8:09 p.m.