dif_ecdf_plot {stodom} | R Documentation |
plot difference ecdfs
Description
This function computes the values of the cumulative difference of two empirical cumulative distribution function and plots the values.
Usage
dif_ecdf_plot(data_1, data_2, bins_size)
Arguments
data_1 |
data 1. |
data_2 |
data 2. |
bins_size |
bin size. |
Details
This function computes the values of the cumulative difference of two empirical cumulative distribution function and plots the values. This relates two showing second-order stochastic dominance.
Value
The function returns a plot as a ggplot2 object.
Examples
# load stodom
require(stodom)
data_a <- rnorm(500, 3, 2)
data_b <- rnorm(500, 1, 2)
# plot cumulative difference between two ecdfs
dif_ecdf_plot(data_1 = data_a, data_2 = data_b, bins_size = 0.1)
[Package stodom version 0.0.1 Index]