bfast icon indicating copy to clipboard operation
bfast copied to clipboard

Bfastmonitor/Spatial: rmse extra band

Open nephentes7 opened this issue 5 years ago • 1 comments

Is there an easy way to get the RMSE (of the residuals) out, as an extra band (returnLayers) in Bfastmonitor? Many thanks!!!

nephentes7 avatar Sep 22 '20 13:09 nephentes7

Hi, thanks for the question. Can you provide a reproducible (simple) example of what you want? rmse of the residuals of the model fit? it can certainly be derived see e.g. this example - and look at the bfastmonitor() code itself - for details - on how the current calculations are done. Try to look at this and see.

library(bfast)
library(zoo)
NDVIb <- as.ts(zoo(som$NDVI.b, som$Time))
plot(NDVIb)
monb <- bfastmonitor(NDVIb, start = c(2010, 13))
monb
bfastmonitor

janverbesselt avatar Sep 29 '20 12:09 janverbesselt