weighted.sum: Weighted Arithmetic Sum

Description Usage Arguments

Description

Compute a weighted sum.

Usage

1
weighted.sum(x, w, ..., na.rm = FALSE)

Arguments

x

an object containing the values whose weighted sum is to be computed.

w

a numerical vector of weights the same length as x giving the weights to use for elements of x.

...

arguments to be passed to or from methods.

na.rm

a logical value indicating whether NA values in x should be stripped before the computation proceeds.


jmuhlenkamp/conditionalAR documentation built on May 30, 2019, 1:59 p.m.