windowsize: Find Window Size

Description Usage Arguments Value Author(s) References Examples

View source: R/windowsize.R

Description

Estimate optimal window size for seasonal time series analysis.

Usage

1
windowsize(x, y, winmin, winmax, winstep)

Arguments

x

original x values from file

y

original y values from file

winmin

Minimum window size

winmax

Maximum window size

winstep

step size

Value

win

optimum window length

error

error for win

Author(s)

Jonathan M. Lees<[email protected]>

References

Wang, T., Surge, D., and Lees, J. M., (2015) ClamR: A Statistical Evaluation of Isotopic and Temperature Records in Sclerochronologic Studies. Palaeogeography, Palaeoclimatology, Palaeoecology, doi:10.1016/j.palaeo.2015.07.008.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(CLAM1)
shellx=CLAM1$x[38:70]
shelly=CLAM1$y[38:70]

window_shell=windowsize(shellx,shelly,1.8,9.4,0.2)


## End(Not run)

ClamR documentation built on May 30, 2017, 4:48 a.m.