Description Usage Arguments Details Value See Also Examples
Calculates sample measures of skewness (the sample quartile skewness or standardized sample skewness) of a vector of data, or of each column of a matrix of data, based on the estimators described in the the STAT002 notes.
1 2 3 |
x |
A numeric vector or matrix. |
type |
Relevant to |
na.rm |
A logical scalar. If true, any |
See Section 2.3 of the STAT002 notes.
Sample quartile skewness. Let q_L, m and q_U be the sample lower quartile, mean and upper quartile respectively. A measure of skewness often called the quartile skewness is given by
[ (q_U - m) - (m - qL) ] / (q_U - q_L).
Standardized sample skewness. Denote a vector of data by (x_1, ..., x_n) and let xbar and s be the sample mean and sample standard deviation respectively. The standardized sample skewness is given by
(1 / n) ∑ (x_i - xbar) ^ 3 / s ^ 3,
where the summation ∑ is over i = 1, ..., n.
A numeric scalar (if the input was a vector) or vector (if the input was a matrix).
quantile
for calculating sample quantiles.
mean
for the sample mean.
sd
for the sample standard deviation.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.