seg.RESTREND {TSS.RESTREND} | R Documentation |
Segmented RESTREND (RESidual TREND)
Description
For ts with a significant breakpoints in the residuals but not in the VPR. Takes annual VI max and it associated optimal accumulated precipitation and regresses it with a dummy variable that is 0 before the breakpoint and 1 after it
Usage
seg.RESTREND(
anu.VI,
acu.RF,
VI.index,
breakpoint,
acu.TM = NULL,
sig = 0.05,
retnonsig = FALSE
)
Arguments
anu.VI |
The annual (Growing season) max VI. Must be a object of class |
acu.RF |
The optimal accumulated rainfall for anu.VI. Must be a object of class |
VI.index |
the index of the CTSR.VI ts that the anu.VI values occur at. Must be the same length
as anu.VI. NOTE. R indexs from 1 rather than 0.
if VI.index=FALSE, it will be calculated from the CTSR.VI using |
breakpoint |
The index of the most significant breakpoint as determined using |
acu.TM |
The optimal accumulated rainfall for anu.TM. Must be a object of class |
sig |
Significance of all the functions. defualt sig=0.05 |
retnonsig |
Bool. New in v0.3.0. Allows TSSRESTREND to return change estimates of values that filed the sig component in the residual analysis. defualt FALSE will give the same result as eralier versions. |
Value
a list of class TSSRESTREND.
See TSSRESTREND
for details. Note. if called seperatly from TSSRESTREND,
this list will be incomplete.
Author(s)
Arden Burrell, arden.burrell@unsw.edu.au
Examples
# brkp can be determined using VPR.BFAST and CHOW.
brkp <- as.integer(11)
resu <- seg.RESTREND(segRESTREND$max.NDVI, segRESTREND$acc.precip, segRESTREND$index, brkp)