score: Score of Lags

Description Usage Arguments Value Author(s) Examples

View source: R/score.R

Description

This function computes the score of best lags by summing the correlation of corresponding lags

Usage

1
score(corr, lags)

Arguments

corr

a vector of computed correlation

lags

a vector of same length with corr that holds the lags corresponding to the corr vector

Value

a numerical value of best lag picked based on corr and lags

Author(s)

Thevaa Chandereng, Anthony Gitter

Examples

1
2
score(runif(10, 0, 1), c(2, 0, 0, 0, 3, 2, -1, 2, 0, 1))
score(runif(20, 0.5, 0.8), sample(-3:3, size = 20, replace = TRUE))

gitter-lab/LPWC documentation built on May 7, 2020, 2:02 p.m.