norm_HD is used to derive the narrowest interval of a predetermined coverage from a Normal distribution, containing the Highest Density (HD) values.
norm_HD( cover = NULL, mu = NULL, sdv = NULL, plot = FALSE,
xlab = "x", ylab = "Density" )
Returns a data frame with the upper and the lower limits of the Highest Predictive Denisty or Mass (HPrD/M) region, the lower and the achieved coverage. If plot=T, then the HPrD/M is visualized.
scalar (between 0 and 1); The coverage (probability) of the Highest Density (HD).
scalar (real); It is the mean of the Normal distribution and needs to be a number.
scalar (positive); It is the standand deviation of the Normal distribution and needs to be a number.
logical; if TRUE, the plot of the HD region is displayed. It is FALSE by default.
The titles of the x-axis and y-axis for the HD plot. The default values are "x" and "Density".
norm_HD provides the Highest Density (HD) of a Normal distribution. HD is the narrowest interval with a pretermined coverage. The values included in HD have density larger than every point outside the region.
norm_HD(0.95, mu = 10, sdv = 1/2, plot = TRUE)
Run the code above in your browser using DataLab