Description Usage Arguments Details Value
Generate stochastic replicates of monthly streamflow time series.
1 2 3 |
Q.obs |
A data frame of observed streamflow with three columns (year, month, Q). By default, the replicates will have the same years as Q.obs, unless |
method |
Either 'arima' or 'arimax'. 'parma' will be included soon. |
order |
A vector of ARIMA model order. See |
X.obs |
Observed exogeneous input, a data frame with 3 columns (year, month, X). If there are more than 3 columns, the desirable column name to be used as exogenous input should be given in |
X.reps |
Replicates of X. See ONI_reps. |
X.name |
String, the name of the column used to represent the exogenous input. |
X.lag |
Integer, time lag of X for model fitting |
years |
If provided, the replicates will be indexed by these years. |
num.reps |
Number of replicates to be generated. Default is 100. |
trim |
Used to cut off values that are too high or too low. Values that are more than |
Q.trans |
The pre-processing transformation that will be applied to Q.obs before fitting.
|
X.trans |
Same as |
First, an ARMA or ARMAX model will be fitted using the overlapping period of Q.obs
and X.obs
. Then, an ARMA model will be fitted using forecast::Arima
. Finally, stochastic time series will be generated using stats::simulate
.
A data.table with the following collumns: year, month, X (if method == 'armax'
) and Q.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.