CalcStandDevSkewedDistr | R Documentation |
Computes a modified standard deviation for skewed distributions by mirroring data points about the mean. This approach aims to reflect the skewed part of the distribution to better understand its spread.
CalcStandDevSkewedDistr(x, mean_x = mean(x), plothist = FALSE, breaks = 50)
x |
A numeric vector representing the distribution. |
mean_x |
The central tendency of |
plothist |
Logical indicating whether to display histograms of the original, mirrored,
and combined distributions. Default is |
breaks |
The number of bins to use in the histogram if plotted. Default is 50. |
The estimated standard deviation for the skewed distribution.
set.seed(123)
skewed_data <- rexp(100, rate = 0.1)
# Calculate modified standard deviation without plotting
modified_sd <- stand_dev_skewed(skewed_data)
# Calculate and plot the distribution and its mirrored version
stand_dev_skewed(skewed_data, plothist = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.