compute_onset: Compute the onset date from a design object

View source: R/onset.R

compute_onsetR Documentation

Compute the onset date from a design object

Description

Onset is the date on which a survey is considered as incident in incidence and episode computation (when the disease started)

Usage

compute_onset(weekly, design)

Arguments

weekly

weekly data

design

design object,

Details

Evaluate the 'design' expression to compute the onset column. The expression is evaluated using weekly data and quosure environment;

if design is FALSE, does nothing, return the weekly. This can be used if the 'onset' column is already available in the provided weekly data.frame.

Value

weekly


cturbelin/ifnBase documentation built on Nov. 5, 2023, 12:54 p.m.