x: streamflow object, as output from the asStreamflow() function
year.start: Start of the year for estimating baseline, or NULL to interpret this from input data
year.end: End of the year for estimating baseline, or NULL to interpret this from input data
window.20: If TRUE, baseline is constructed using windowing (20 year windows) and bootstrapping. If FALSE, baseline is constructed for a single run between start and end year.
Returns
ssignal object containing the baseline signal
Examples
# load sample datadata("sycamore")x = sycamore
# get streamflow object for the sample datax.streamflow = asStreamflow(x)# baseline for single run for all the years in input signalbl.singlerun.all = prepareBaseline(x.streamflow)# baseline for singlerun between the given start and end yearsbl.singlerun.filtered = prepareBaseline(x.streamflow, year.start =1961, year.end =2000)# baseline with windowinng and bootstrapping on all years in the input signalbl.windowed.all = prepareBaseline(x.streamflow, window.20=TRUE)# baseline with windowing and bootstrapping on given start year # with end year inferred from singalbl.windowed.filtered = prepareBaseline(x.streamflow, year.start =1961, window.20=TRUE)