`stcenter`

centers and scales the space-time series `data`

such that its mean is 0 and its standard error 1.

1 |

`data` |
a matrix or data frame containing the space-time series: row-wise should be the temporal observations, with each column corresponding to a site. |

`center` |
a logical value indicating whether the series should be centered or not (subtracting the mean). |

`scale` |
a logical value indicating whether the series should be scaled or not (dividing by the empiric stand deviation). |

To be able to apply the three-stage iterative model building procedure method for STARMA models, data must be centered beforehand (since `starma`

doesn't estimate an intercept coefficient).

The only difference with the R function `scale`

is that it doesn't center and scale column by column, but globally, since all the observations come from a single process in the case of space time series.

An object of the same class as `data`

, that is either a `matrix`

or a `data.frame`

.

Felix Cheysson

1 2 3 4 5 6 7 8 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.