View source: R/helper_functions.R
a_j_round | R Documentation |
Define the intervals associated with y = j
based on the midpoint rounding.
The function returns -Inf
for j < y_min
and Inf
for
j > y_max
, where y_min
and y_max
are a known bounds on the data y
(if specified). Negative values are allowed.
a_j_round(j, y_min = -Inf, y_max = Inf)
j |
the integer-valued input(s) |
y_min |
a fixed and known lower bound for all observations; default is |
y_max |
a fixed and known upper bound for all observations; default is |
The (lower) interval endpoint(s) associated with j
.
# Standard cases:
a_j_round(0)
a_j_round(20)
# Boundary cases:
a_j_round(0, y_min = 1)
a_j_round(20.5, y_max = 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.