check_cdf_bounds: Check CDF values fall in between bounds

Description Usage Arguments Functions

Description

Check CDF values fall in between bounds

Check CDF over a grid of x values

Check many CDFs over a grid of x values

Determine regions of random CDFs.

Usage

1
2
3
4
5
6
7
check_cdf_bounds(dpp_draw, ubf, lbf, x)

check_cdf_whole(dpp_draw, ubf, lbf, xgrid)

check_cdf_many(dpp_draws, ubf, lbf, xgrid)

check_cdf_counts(many_draws_checked, N)

Arguments

dpp_draw

Data frame. A single draw of a CDF from a Dirichlet Process. Output of the dp*_sim*() functions. Should have columns names locations and weCDF.

ubf

Function. The upper bound function created with the clicked data points. Output of either spline_funs() or linear_funs().

lbf

Function. The lower bound function created with the clicked data points. Output of either spline_funs() or linear_funs().

x

Numeric. A single x-value to check in the domain of the CDF.

xgrid

Numeric. A vector of x values in the domain of the CDF to check. It is recommended you don't put the bounds in.

dpp_draws

A tibble. The output from dpprior_sim2() (or dppost_sim2()).

many_draws_checked

A tibble. The output from check_cdf_many()

N

An integer. How many repeated draws are in many_draws_checked? Same N as that of dp*_sim2().

Functions


sctyner/dprocsim documentation built on June 30, 2019, 11:51 a.m.