Last data update: 2014.03.03

R: Appropriate Summary Statistics for Factors, Ordered Factors,...
load.sumR Documentation

Appropriate Summary Statistics for Factors, Ordered Factors, and Numeric Variables

Description

Returns the medians of a vector of ordered factor variables, the modes of a vector of unordered factor variables, and the means of a vector of numeric variables.

Usage

load.sum(vec)

Arguments

vec

A vector of ordered factor variables, a vector of unordered factor variables, or a vector of numeric variables.

Value

load.sum returns the medians of a vector of ordered factor variables, the mode of a vector of unordered factor variables, and the mean of a vector of numeric variables.

Author(s)

Michael Lipsitz, Alexandre Belloni, Victor Chernozhukov, Ivan Fernandez-Val

See Also

npqr

Results