Nothing
#' Truncated normal quantiles
#'
#' This function computes quantiles of the truncated normal distribution
#' for calculating THAMES confidence intervals.
#'
#' @param p Percentile
#' @param ratio Ratio of standard error to point estimate
#' (midpoint of confidence interval)
#' @importFrom stats ar cov pnorm qnorm sd var
#' @return Truncated normal quantile
#'
#' @keywords internal
trunc_quantile = function(p,ratio){
alpha = - 1/ratio
(qnorm(p=pnorm(alpha)+p*(1-pnorm(alpha))) * (ratio))+1
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.