Learn R Programming

tidySEM (version 0.2.8)

descriptives: Describe a dataset

Description

Provide descriptive statistics for a dataset.

Usage

descriptives(x, ...)

Value

A data.frame with descriptive statistics for x. Its elements are:

nameCharacterVariable name
typecharacterData type in R, as obtained by class(x)[1]
nIntegerNumber of valid observations
missingNumericProportion missing
uniqueIntegerNumber of unique values
meannumericMean value of non-missing entries, only defined for variables that can be coerced to numeric
mediannumericMedian value of non-missing entries, only defined for numeric variables
modeIntegerFor numeric variables: The mode value. For factors: The frequency of the mode value
mode_valueCharacterFor factors: value of the mode
sdnumericStandard deviation of non-missing entries, only defined for variables that can be coerced to numeric
vnumericVariability coefficient V for factor variables (Agresti, 1990). V is the probability that two independent observations fall in different categories
minnumericMinimum value for numeric variables
maxnumericMaximum value for numeric variables
rangenumericRange (distance between min and max) for numeric variables
skewnumericSkewness. The normalized third central moment of a numeric variable, which reflects its skewness. A symmetric distribution has a skewness of zero
skew_2senumericSkewness, divided by two times its standard error. Values greater than one can be considered "significant" according to a Z-test with significance level of .05
kurtnumericKurtosis. The normalized fourth central moment of a numeric variable, which reflects its peakedness. A heavy-tailed distribution has high kurtosis, a light-tailed distribution has low kurtosis (sometimes called platykurtic).
kurt_2senumericKurtosis, divided by two times its standard error. Values greater than one can be considered "significant" according to a Z-test with significance level of .05

Arguments

x

An object for which a method exists.

...

Additional arguments.

References

Agresti, A. (2012). Categorical data analysis (Vol. 792). John Wiley & Sons.

Examples

Run this code
descriptives(iris)

Run the code above in your browser using DataLab