- date
[date|datetime|integer|number_line]
. Event date or period.
- case_length
[integer|number_line]
. Duration from index event distinguishing one "Case"
from another.
- episode_type
[character]
. Options are "fixed"
(default), "rolling"
or "recursive"
. See Details
.
- recurrence_length
[integer|number_line]
. Duration from an event distinguishing a "Recurrent"
event from its index event.
- episode_unit
[character]
. Time units for case_length
and recurrence_length
. Options are "seconds", "minutes", "hours", "days" (default), "weeks", "months" or "years". See diyar::episode_unit
.
- strata
[atomic]
. Subsets of the dataset. Episodes are created separately for each strata
.
- sn
[integer]
. Unique record identifier. Useful for creating familiar epid
identifiers.
- episodes_max
[integer]
. The maximum number of episodes permitted within each strata
.
- rolls_max
[integer]
. Maximum number of times the index event recurs. Only used if episode_type
is "rolling"
or "recursive"
.
- case_overlap_methods
[character|integer]
. Accepted overlaps method for "Case"
and "Duplicate"
events. Relevant when date
is a period (number_line). See (overlaps
).
- recurrence_overlap_methods
[character|integer]
. Accepted overlaps method for "Recurrent"
and "Duplicate"
events. Relevant when date
is a period (number_line). See (overlaps
).
- skip_if_b4_lengths
[logical]
. If TRUE
(default), events before a lagged case_length
or recurrence_length
are skipped.
- data_source
[character]
. Data source identifier. Adds the list of data sources in each episode to the epid
. Useful when the data is from multiple sources.
- data_links
[list|character]
. A set of data_sources
required in each epid
. A record-group without records from these data_sources
will be unlinked
. See Details
.
- custom_sort
[atomic]
. Preferential order for selecting index events. See custom_sort
.
- skip_order
[integer]
. "nth"
level of custom_sort
. Episodes with index events beyond this level of preference are skipped.
- reference_event
[character]
. Specifies which events are used as index events for a subsequent case_length
or recurrence_length
. Options are "last_record"
(default), "last_event"
, "first_record"
or "first_event"
.
- case_for_recurrence
[logical]
. If TRUE
, both "Case"
and "Recurrent"
events will have a case_length
.
If FALSE
(default), only case events
will have a case window
. Only used if episode_type
is "rolling"
or "recursive"
.
- from_last
[logical]
. Chronological order of episode tracking i.e. ascending (TRUE
) or descending (FALSE
).
- group_stats
[logical]
. If TRUE
(default), episode-specific information like episode start and end dates are returned.
- display
[character]
. Display or produce a status update. Options are; "none"
(default), "progress"
, "stats"
, "none_with_report"
, "progress_with_report"
or "stats_with_report"
.
- case_sub_criteria
[sub_criteria]
. Additional matching criteria for events in a case_length
.
- recurrence_sub_criteria
[sub_criteria]
. Additional matching criteria for events in a recurrence_length
.
- case_length_total
[integer|number_line]
. Minimum number of matched case_lengths
required for an episode.
- recurrence_length_total
[integer|number_line]
. Minimum number of matched recurrence_lengths
required for an episode.
- skip_unique_strata
[logical]
. If TRUE
, a strata with a single event are skipped.