plot_Y_AB | R Documentation |
retunrs a ggplot2 with the estimations of Y_A and Y_B or the difference in cumulative distribution function.
plot_Y_AB(
estimated_Y_AB_bounds,
labels = c("X_A", "X_B"),
plotDifference = TRUE
)
estimated_Y_AB_bounds |
the bounds estimated with |
labels |
(optional, default=c("X_A","X_B")) a string vector of length 2 with the labels of X_A and X_B, in that order. |
plotDifference |
(optional, default=TRUE) plots the difference (Y_A - Y_B) instead of each of the random variables on their own. |
the ggplot figure object.
### Example 1 ###
X_A_observed <- rnorm(800,mean = 1, sd = 1)
X_B_observed <- rnorm(800,mean = 1.3, sd = 0.5)
res <- get_Y_AB_bounds_DKW(X_A_observed, X_B_observed)
densitiesPlot = plot_Y_AB(res, plotDifference=TRUE)
print(densitiesPlot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.