plot_3d_beta {ivdoctr} | R Documentation |
Plot ivdoctr Restrictions
Description
Plot ivdoctr Restrictions
Usage
plot_3d_beta(
y_name,
T_name,
z_name,
data,
controls = NULL,
r_TstarU_restriction = c(-1, 1),
k_restriction = c(0, 1),
n_grid = 30,
n_colors = 500,
fence = NULL,
gray_k = NULL,
gray_rTstarU = NULL,
theta = 0,
phi = 15
)
Arguments
y_name |
Character string with the column name of the dependent variable |
T_name |
Character string with the column name of the endogenous regressor(s) |
z_name |
Character string with the column name of the instrument(s) |
data |
Data frame |
controls |
Vector of character strings specifying the exogenous variables |
r_TstarU_restriction |
2-element vector of bounds for r_TstarU |
k_restriction |
2-element vector of bounds for kappa |
n_grid |
Number of points to put in grid |
n_colors |
Number of colors to use |
fence |
Vector of left, bottom, right, and top corners of rectangle |
gray_k |
2-element vector of kappa restrictions to recolor graph as gray |
gray_rTstarU |
2-element vector of rTstarU restrictions to recolor graph as gray |
theta |
Graphing parameters for orienting plot |
phi |
Graphing parameters for orienting plot |
Value
Interactive 3d plot which can be oriented and saved using rgl.snapshot()
Examples
library(ivdoctr)
endog <- matrix(c(0, 0.9), nrow = 1)
meas <- matrix(c(0.6, 1), nrow = 1)
plot_3d_beta(y_name = "logpgp95", T_name = "avexpr",
z_name = "logem4", data = colonial,
r_TstarU_restriction = endog,
k_restriction = meas)