plot.rbounds: A default plotting method for objects of class 'rbounds'

Description Usage Arguments Value Examples

Description

A default plotting method for objects of class 'rbounds'

Usage

1
2
## S3 method for class 'rbounds'
plot(m)

Arguments

m

An object of class 'rbounds' estimated by pidoutcomes

Value

A ggplot2 plot. Can be modified with any standard ggplot2 options

Examples

1
2
3
4
5
6
7
8
9
N <- 1000
x <- rnorm(N)
e <- rnorm(N)
y <- as.numeric(2*x + e > 0)
z <- rbinom(N, 1, .75)
y_obs <- z*y
df <- data.frame(y_obs, x, z)
m1 <- pidoutcomes(y_obs ~ x, z, df)
plot(m1)

gabrielfgm/rbounds documentation built on May 8, 2019, 8:09 a.m.