Learn R Programming

ivmte (version 1.0.1)

dtsf: Splines data set

Description

A simulated population-level data set characterizing the effect of a treatment on an outcome. The data includes a treatment indicator, a single covariate, and a single covariate. The unobservable terms generating the outcomes are generated according to the following specifications: y1 ~ beta0 + beta1 * x + uSpline(degree = 2, knots = c(0.3, 0.6), intercept = FALSE)

Usage

dtsf

Arguments

Format

A data frame with 4,200 rows and 8 columns.

x

covariate

z

instrument

f

density

p

probability of treatment uptake

ey1

counterfactual outcome when a recipient of treatment

ey0

counterfactual outcome when not a recipient of treatment

d

indicator for treatment (d = 1) versus control (d = 0) group

ey

the observed outcome

Details

y0 = x : uSpline(degree = 0, knots = c(0.2, 0.5, 0.8), intercept = TRUE) + uSpline(degree = 1, knots = c(0.4), intercept = TRUE) + beta3 * I(u ^ 2)

This data set is generated by the (non-exported) command gendist_splines().