Computes quantiles from the NTR posterior and puts them into a new slot
ComputeNtrPosteriorQuantile(data, quantile, name)ComputeNtrCI(data, CI.size = 0.95, name.lower = "lower", name.upper = "upper")
ComputeNtrPosteriorLower(data, CI.size = 0.95, name = "lower")
ComputeNtrPosteriorUpper(data, CI.size = 0.95, name = "upper")
a new grandR object containing an additional slot
the grandR object
which quantile to compute
the name of the new slot to put quantile values in
A number between 0 and 1 representing the size of the credible interval
the name of the new slot to put the lower bound of the CI in
the name of the new slot to put the upper bound of the CI in
The NTR posterior distribution can be approximated by a beta distribution.
ComputeNtrPosteriorQuantile computes any quantile from this Beta approximation
ComputeNtrPosteriorLower computes the (1-CI.size)/2 quantile
ComputeNtrPosteriorUpper computes the 1-(1-CI.size)/2 quantile
ComputeNtrCI computes both of these quantiles.