Function computes descriptive statistics for one variable or several variables within a data frame.
descr (variable, na = NA, p.weights = NULL, na.rm = FALSE, verbose=TRUE)
a data frame with the following columns
number of observations
number of non-missing observations
number of missings
minimum of numeric variables
maximum of numeric variables
sum of numeric variables
arithmetic mean of numeric variables
standard error of the arithmetic mean. Note: for weighted means, standard error is estimated according to Cochran (1977): \(sigma_x^2=n/((n-1)*w_s^2)*Sigma(w_i^2*(x_i-x))\).
p value
median of numeric variables
standard deviation of numeric variables
variance of numeric variables
one variable or a data.frame with several variables
optional values with should be considered a missing values
optional: vector with individual weights if weighted statistics should be computed
logical: should missings be removed prior to estimation?
logical: Print messages to console?
Sebastian Weirich
Cochran W. G. (1977). Sampling Techniques (3rd Edn). Wiley, New York