rd_type: Determine Type of Regression Discontinuity Design

Description Usage Arguments Value

Description

rd_type cross-tabulates observations based on (1) a binary treatment and (2) one or two assignments and their cutoff values.

Usage

1
2
rd_type(data, treat, assign_1, cutoff_1, operator_1 = NULL, assign_2 = NULL,
  cutoff_2 = NULL, operator_2 = NULL)

Arguments

data

A data.frame with each row representing an observation.

treat

The name of a numeric variable (treated = positive values).

assign_1

The variable name of the primary assignment.

cutoff_1

The cutoff value of the primary assignment.

operator_1

The operator for the primary assignment.

assign_2

The variable name of the secondary assignment.

cutoff_2

The cutoff value of the secondary assignment.

operator_2

The operator for the secondary assignment.

Value

A list of two elements:

crosstab

The cross-table as a data.frame.

type

The type of design as a string.


rddapp documentation built on May 1, 2019, 8:04 p.m.