Learn R Programming

translateSPSS2R (version 1.0.0)

computeCfvar: Computes the coefficient of variation

Description

Helper Function for xpssCompute. R Implementation of the SPSS CFVAR Function.

Usage

computeCfvar(x,...)

Arguments

x
atomic numeric or numeric vector or numeric matrix
...
further arguments passed to or from other methods.

Value

Numeric. Returns the coeffiecent of variation. If the data contains missing values, it is possible to specify an na remove command, this is na.rm. The default for na.rm is na.rm=F, if the value get changed to na.rm=T every existing missing value get omitted.

See Also

max

Examples

Run this code
xpssCompute(x = fromXPSS, variables = c("V5","V7_1"),fun = "computeCfvar")

Run the code above in your browser using DataLab