cvar: Cumulative Variance

View source: R/vec-cumulative-functions.R

cvarR Documentation

Cumulative Variance

Description

A function to return the cumulative variance of a vector.

Usage

cvar(.x)

Arguments

.x

A numeric vector

Details

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

Value

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

Author(s)

Steven P. Sanderson II, MPH

See Also

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

Examples

x <- mtcars$mpg

cvar(x)


RandomWalker documentation built on Oct. 23, 2024, 5:07 p.m.