powered by
This function describes a distribution by a set of indices (e.g., measures of centrality, dispersion, range, skewness, kurtosis).
describe_distribution( x, centrality = "mean", dispersion = TRUE, range = TRUE, ... )
A numeric vector.
The point-estimates (centrality indices) to compute. Character (vector) or list with one or more of these options: "median", "mean", "MAP" or "all".
"median"
"mean"
"MAP"
"all"
Logical, if TRUE, computes indices of dispersion related to the estimate(s) (SD and MAD for mean and median, respectively).
TRUE
SD
MAD
mean
median
Return the range (min and max).
Additional arguments to be passed to or from methods.
Converted index.
# NOT RUN { describe_distribution(rnorm(100)) # }
Run the code above in your browser using DataLab