es_point_plot: es_point_plot

Description Usage Arguments Value Examples

View source: R/es_point_plot.R

Description

Plot of effect size contours with pvalue contours and observed covariate points overlayed

Usage

1
es_point_plot(prep, col = "color")

Arguments

prep

Input from prep_for_plots

col

If user wants color or black and white. Specify color with "color" or black and white "bw".

Value

a list of class gg and ggplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
data(sud)
sud = data.frame(sud[sample(1:nrow(sud),100),])
sud$treat = ifelse(sud$treat == "A", 1, 0)
sud$wts = sample(seq(1, 10, by=.01), size=nrow(sud), replace = TRUE)
outcome_mod = outcome_model(data = sud,
                            weights = "wts",
                            treatment = "treat",
                            outcome = "eps7p_6",
                            model_covariates = c("sfs8p_0", "eps7p_0",
                                                 "ada_0"),
                            estimand = "ATE")

ovtool_results = ov_sim(model_results=outcome_mod,
                        plot_covariates=c("sfs8p_0", "ada_0"),
                        es_grid = 0,
                        rho_grid = 0,
                        n_reps = 2,
                        progress=FALSE)
prep = prep_for_plots(ovtool_results, p_contours=.05)
plot = es_point_plot(prep = prep)

OVtool documentation built on Nov. 2, 2021, 9:07 a.m.