print.r3d.RdGives a concise overview of an r3d object's main properties, including the design type
(sharp or fuzzy), local polynomial order, sample size, and bandwidth choice. It also shows
a numeric summary (min, median, max) of the estimated distributional RD effect \(\tau(q)\).
# S3 method for class 'r3d'
print(x, ...)An r3d object returned by r3d.
Additional arguments (not used).
Returns the x object invisibly.
This function is invoked automatically when an r3d object is printed on the console,
e.g., simply by typing its name. For a more detailed summary, use summary.r3d.
# \donttest{
set.seed(42)
n <- 50
X <- runif(n, -1, 1)
Y_list <- lapply(seq_len(n), function(i) rnorm(20, mean = 2 + 2 * (X[i] >= 0)))
fit <- r3d(X, Y_list, cutoff = 0, method = "simple", bandwidths = 0.5)
print(fit)
#> R3D: Regression Discontinuity with Distributional Outcomes
#> -------------------------------------------------------
#> Method: simple
#> Type: Sharp RDD
#> Polynomial order: 2
#> Bandwidths: MSE-optimal (varies by quantile)
#> Sample size: 50
#> Quantiles evaluated: 99
#> Bootstrap: NO
#>
#> Treatment Effect Summary:
#> Min. 1st Qu. Median Mean 3rd Qu. Max.
#> 0.9953 1.5632 1.6214 1.5874 1.7094 2.0216
#>
#> Use summary() for more details and plot() for visualization
# }