plot_coef: Plot OLS and IV Coefficents

View source: R/plot_coef.R

plot_coefR Documentation

Plot OLS and IV Coefficents

Description

Visualise point estimates and confidence intervals of OLS and IV estimates.

Usage

plot_coef(out, 
  ols.methods = c("analy","bootc","boott"),
  iv.methods = c("analy","bootc","boott","ar","tf"),
  main = NULL, ylab = "Coefficient", grid = TRUE,
  stats = TRUE, ylim = NULL)

Arguments

out

output from ivDiag::ivDiag.

ols.methods

a vector specifying the inferential methods for OLS to be shown. The default is c("analy","bootc","boott").

iv.methods

a vector specifying inferential methods for 2SLS to be shown. The default is c("analy","bootc","boott","ar","tf").

main

a string specifying the title of the plot.

ylab

a string specifying ylab of the plot.

grid

a logical flag indicating whether to show the grids.

stats

a logical flag indicating whether to show the statistics, including the effective F, the number of observations, and the number of clusters (if applicable).

ylim

a two-element vector specifying the range of the y-axis.

Value

A base R plot object.

See Also

ivDiag


apoorvalal/ivDiag documentation built on July 12, 2024, 12:53 p.m.