get_boundary: Construct effective treatment boundaries

View source: R/boundary.R

get_boundaryR Documentation

Construct effective treatment boundaries

Description

Builds boundary objects describing the separating set between two effective treatment regions under a specified exposure mapping.

Usage

get_boundary(neighbors, contrast, exposure)

Arguments

neighbors

List of neighbor indices for each observation.

contrast

A length-2 list describing the two effective treatments to compare.

exposure

Character string specifying the exposure mapping. Supported values currently include "one.treated", "sum.treated", "frac.treated", and "majority".

Value

An object of class "rdd_boundary". Each element corresponds to a distinct neighborhood size and contains the information needed to describe the effective treatment boundary.

Examples

neighbors <- list(c(2, 3), c(1, 3), c(1, 2))
contrast <- list(c(1, 1), c(0, 0))
get_boundary(neighbors, contrast, exposure = "one.treated")


rddinterf documentation built on Dec. 4, 2026, 5:10 p.m.