updateVarYC: Variance calculation (updatable) by Youngs and Cramer

Description Usage Arguments Value Alternatives References Examples

Description

Variance calculation (updatable) by Youngs and Cramer

Usage

1
updateVarYC(x, object = NULL)

Arguments

x

[numeric]
vector (finite, no missing values)

object

[ycVar | NULL]
list (object from updateVarYC) or NULL

Value

[ycVar]

Alternatives

References

Youngs, Edward A., and Elliot M. Cramer. "Some results relevant to choice of sum and sum-of-product algorithms." Technometrics 13.3 (1971): 657–665, DOI:10.2307/1267176.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
yc.fun = function(x) {
  yc = NULL
  for (i in seq_along(x)) {
    yc = NBCD:::updateVarYC(x[i], yc)
  }
  return(yc$var)
}
yc.fun(1:10)

## End(Not run)

aschersleben/NBCD documentation built on May 12, 2019, 4:32 a.m.