Recode intensity of behavior based on frequency of behavior.
recode_intensity(intensity, did_not_occur = NULL, frequency = NULL)mark_intensity_as_zero(
item_names,
data,
did_not_occur_vars = NULL,
frequency_vars = NULL
)
The intensity of the behavior.
The intensity of the behavior.
Whether or not the behavior did NOT occur. If 0
,
the behavior did occur (in the given timeframe). If 1
, the behavior
did not occur in (in the given timeframe).
The frequency of the behavior.
The names of the questionnaire items.
The data object.
The name(s) of the variables corresponding to
whether the behavior did not occur in the past year (did_not_occur
).
The name(s) of the variables corresponding to the
number of occurrences (num_occurrences
).
Recodes the intensity of behavior to zero if the frequency of the behavior is zero (i.e., if the behavior has not occurred).