episodes_wf_splits()
is a wrapper function of episodes()
which reduces or re-frames the dataset to
the minimum number of records required to implement a case definition.
This leads to the same outcome but with the benefit of a shorter processing time.
Duplicate records from the same point or period in time are excluded from episodes()
.
The resulting epid
object is then recycled for the duplicates.
The duplicates_recovered
argument determines which identifiers are recycled.
If "without_sub_criteria"
is selected, only identifiers created from a matched sub_criteria
("Case_CR"
and "Recurrent_CR"
) are recycled.
The opposite ("Case"
and "Recurrent"
) is the case if "with_sub_criteria"
is selected.
Excluded duplicates of "Duplicate_C"
and "Duplicate_R"
are always recycled.
The reframe
argument will either reframe
or subset a sub_criteria
.
Both will require slightly different functions for match_funcs
or equal_funcs
.