
Check eligibility based on no observation of a specific value (excluding baseline week)
Source:R/skeleton_utils.R
skeleton_eligible_no_observation_in_window_excluding_wk0.RdCheck eligibility based on no observation of a specific value (excluding baseline week)
Usage
skeleton_eligible_no_observation_in_window_excluding_wk0(
dt,
var,
value,
window = Inf,
col_name = NULL
)Arguments
- dt
A data.table with
id,isoyearweekand the specified variable. Within eachid, the rows MUST be in calendar order.- var
Character. Name of the column to check.
- value
The specific value to look for. A row where
varisNAcounts as no observation.- window
Number of prior ISO weeks to check. 99999 or more,
Infincluded, means every earlier row. Default: Inf.- col_name
Character or NULL.
See also
skeleton_eligible_no_events_in_window_excluding_wk0(),
skeleton_eligible_combine()
Other skeleton_eligibility:
skeleton_eligible_age_range(),
skeleton_eligible_combine(),
skeleton_eligible_isoyears(),
skeleton_eligible_no_events_in_window_excluding_wk0(),
skeleton_eligible_no_events_lifetime_before_and_after_baseline()