Learn R Programming

RandomWalker (version 0.1.0)

cvar: Cumulative Variance

Description

A function to return the cumulative variance of a vector.

Usage

cvar(.x)

Value

A numeric vector. Note: The first entry will always be NaN.

Arguments

.x

A numeric vector

Author

Steven P. Sanderson II, MPH

Details

A function to return the cumulative variance of a vector. exp(cummean(log(.x)))

See Also

Other Vector Function: cgmean(), chmean(), ckurtosis(), cmean(), cmedian(), crange(), csd(), cskewness(), euclidean_distance(), kurtosis_vec(), rw_range(), skewness_vec()

Examples

Run this code
x <- mtcars$mpg

cvar(x)

Run the code above in your browser using DataLab