Learn R Programming

ClamR (version 2.1-3)

windowsize: Find Window Size

Description

Estimate optimal window size for seasonal time series analysis.

Usage

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

Value

win

optimum window length

error

error for win

Arguments

x

original x values from file

y

original y values from file

winmin

Minimum window size

winmax

Maximum window size

winstep

step size

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

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

Run this code
if (FALSE) {
data(CLAM1)
shellx=CLAM1$x[38:70]
shelly=CLAM1$y[38:70]

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

}


Run the code above in your browser using DataLab