dstudy: Descriptive Study

View source: R/dstudy.R

dstudyR Documentation

Descriptive Study

Description

Functions for obtaining descriptive statistics for a vector or matrix of quantitative variables.

Usage

dstudy(x, complete = TRUE, na.rm = FALSE, ...)

kurt(x, na.rm = FALSE)

skew(x, na.rm = FALSE)

summiss(x, ...)

sumcomp(x, ...)

Arguments

x

vector, matrix, or data.frame of scores with one column per variable.

complete

logical with default TRUE indicating whether or not x should be reduced to rows with complete data across all columns.

na.rm

logical with default FALSE specifying whether missings should be removed before calculating individual descriptives.

...

further arguments passed to or from other functions.

Value

dstudy returns a data frame of descriptive statistics, including the mean, median, standard deviation, skewness, kurtosis, minimum, maximum, number of complete cases, and number of NAs (in columns), by variable (in rows). kurt and skew return the kurtosis and skewness. summiss and sumcomp count missings and complete cases.

Examples

dstudy(PISA09[, c("elab", "cstrat", "memor")])


talbano/epmr documentation built on Aug. 25, 2023, 1:35 p.m.