pred.dist.simul: Simulate from the predictive distribution

Description Usage Arguments Value Note


Simulate N- replicates from the predictive distribution for a given time point (tpt) from 1 to n (length of the data).


pred.dist.simul(hyperest, tpt, include.obs = T, N = 1)



Output from the staircase.hyper.est functions, containing estimates of all hyperparameters


A specific time point - from 1 to n corresponding to the number of time points from the data set


If TRUE, the observed data for time tpt, are also returned


Number of replicates


A matrix with N rows; the number of columns depends on whether the observed data are returned

The columns are organized consistent with the observed data (ie. u\times p ungauged blocks, g1\times p, g_2\times p, ...)


This function could be slow if there are missing data at gauged sites correspondind to the selected time point. That is, it is fastest at time points corresponding to Block 1 and slower with higher blocks.

Search within the EnviroStat package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

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