plot_3d_beta: Plot ivdoctr Restrictions

Description Usage Arguments Value

View source: R/3d_plot.R

Description

Plot ivdoctr Restrictions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
plot_3d_beta(
  y_name,
  T_name,
  z_name,
  data,
  controls = NULL,
  r_TstarU_restriction = NULL,
  k_restriction = NULL,
  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

Matrix of desired mins and maxes for r_TstarU (must be same dimensions as k_restriction)

k_restriction

Matrix of desired minx and maxes for kappa (must be same dimensions as r_TstarU_restriction)

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

Matrix of kappa restrictions to recolor graph as gray

gray_rTstarU

Matrix 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()


fditraglia/ivdoctr documentation built on June 12, 2020, 7:08 p.m.