Learn R Programming

TidyDensity (version 1.5.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: bootstrap_p_vec(), bootstrap_q_vec(), cgmean(), chmean(), ckurtosis(), cmean(), cmedian(), csd(), cskewness(), tidy_kurtosis_vec(), tidy_scale_zero_one_vec(), tidy_skewness_vec()

Examples

Run this code
x <- mtcars$mpg

cvar(x)

Run the code above in your browser using DataLab