rd_type
cross-tabulates observations based on (1) a binary treatment and
(2) one or two assignments and their cutoff values.
rd_type(data, treat, assign_1, cutoff_1, operator_1 = NULL, assign_2 = NULL,
cutoff_2 = NULL, operator_2 = NULL)
A data.frame
with each row representing an observation.
The name of a numeric variable (treated = positive values).
The variable name of the primary assignment.
The cutoff value of the primary assignment.
The operator for the primary assignment.
The variable name of the secondary assignment.
The cutoff value of the secondary assignment.
The operator for the secondary assignment.
A list of two elements:
The cross-table as a data.frame.
The type of design as a string.