tw_plot: Plot Results of 'tw_sim' simulations

View source: R/twsim2.R

tw_plotR Documentation

Plot Results of tw_sim simulations

Description

This function will generate plots comparing the performance of different estimators at returning tw_sim Monte Carlo simulations.

Usage

tw_plot(
  gensim,
  display_est = "coef",
  use_ci = T,
  xvar = NULL,
  yvar = NULL,
  facet_scales = "fixed",
  ...
)

Arguments

gensim

A set of simulations produced by tw_sim

display_est

Whether to display estimated coefficients of independent variables from the linear model ("coef") or the standard error of these estimates ("se")

use_ci

Whether to add confidence intervals around LOESS curves. Turn off if the CIs are too big relative to plot.

xvar

In case of multiple attributes varied in the simulation, which attribute should be on the x axis? See tw_data for possible attribute names. Should be an unquoted variable name like case.int.sd.

yvar

In case of multiple attributes varied in the simulation, which attribute should be on the y axis? See tw_data for possible attribute names. Should be an unquoted variable name like case.int.sd.

facet_scales

The value of scales option passed to the ggplot2 facet_wrap function to control the scales. Changes to 'free_x','free_y' or 'free' if the scales obscure comparison

...

Currently ignored


saudiwin/twofe_sim documentation built on Feb. 6, 2024, 11:31 a.m.