dot-plot_wt_dist: (For maintainer) Plot weight distributions

.plot_wt_distR Documentation

(For maintainer) Plot weight distributions

Description

Internal function called by weights_\*() and estimate_\*() to make weight distribution plot(s).

Usage

.plot_wt_dist(w.dat, point.alpha = 0.1, jitter.width = 0.3)

.plot_wt_dist.odds(w.dat, point.alpha = 0.1, jitter.width = 0.3)

.plot_wt_dist.psYpred(w.dat, point.alpha = 0.1, jitter.width = 0.3)

Arguments

w.dat

The weighted dataset.

point.alpha, jitter.width

Graphical parameters for geom_point().

Value

If constant sampling weights, plot the densities of distribution-morphing weights in the pseudo samples

If non-constant sampling weights, output two plots, one of the distribution-morphing weights, one of the final weights (product of sampling and distribution-morphing weights)


trangnguyen74/tnMediation documentation built on May 3, 2023, 6:58 a.m.