Learn R Programming

ivregEX (version 1.0)

plot_confregion: Plot Confidence Region

Description

This function provides a visual representation of the confidence regions capturing the three analyses, OLS, 2SLS and EX.

Usage

plot_confregion(est, se, t, roundto = 3, xlims, ylims = c(0, .7), ypos = .35, 
			xaxis = T, legend = T, xlab = 'Treatment Effect', xlab.cex = 1.3,
			oma = c(4.5, 0, 2, 0), ...)

Arguments

est

A numeric vector of length 3, for coeficient estimates of the three analyses - OLS, 2SLS and EX respectively.

se

A numeric vector of length 3, for standard errors of the three analyses - OLS, 2SLS and EX respectively.

t

A number to be used to calculate individual confidence interval by 'est \(\pm\) t*se'. Default value used is 2. For different level of confidence corresponding value has to be provided.

roundto

The number of decimal digit precision.

xlims

Optional numeric array of size 2 for the plotting region of the treatment effect plotted.

ylims, ypos

Optional arguments. Can be used for plotting aeshetics.

xaxis, legend

Logical arguments for whether the treatment effect axis to be plotted and legends shown.

xlab

A logical argument or a character vecctor for the xaxis label.

xlab.cex

Size of xaxis label.

oma

Outer margin dimensions.

Other graphics parameters which are passed to the main plotting function.

Examples

Run this code
# NOT RUN {

est = c(1.6858, 2.8912, 1.1435)
se = c(0.5029, 0.9785, 0.5377)

plot_confregion(est, se, roundto = 3, ypos = .35,  xlab.cex = 1.2)




# }

Run the code above in your browser using DataLab