Learn R Programming

sentometrics (version 0.5.6)

weights_exponential: Compute exponential weighting curves

Description

Computes exponential weighting curves. Handy to self-select specific time aggregation weighting schemes for input in ctr_agg using the weights argument.

Usage

weights_exponential(n, alphas = seq(0.1, 0.5, by = 0.1))

Arguments

n

a single numeric to indicate the lag length.

alphas

a numeric vector of decay factors.

Value

A data.frame of exponential weighting curves per value of alphas.

See Also

ctr_agg