LDS_rep {ldsr} | R Documentation |
Multiple LDS replicates
Description
Generate multiple stochastic time series from an LDS model. This is a convenient wrapper for one_LDS_rep.
Usage
LDS_rep(
theta,
u = NULL,
v = NULL,
years,
num.reps = 100,
mu = 0,
exp.trans = TRUE
)
Arguments
theta |
A list of parameters: A, B, C, D, Q, R, x0, v0 |
u |
Input matrix for the state equation (m_u rows, T columns) |
v |
Input matrix for the output equation (m_v rows, T columns) |
years |
The years of the study horizon |
num.reps |
The number of stochastic replicates#' |
mu |
Mean of the log-transformed streamflow process |
exp.trans |
Whether exponential transformation back to the streamflow space is required. If TRUE, both Y and Q are returned, otherwise only Y. |
Value
Same as one_LDS_rep, but the data.table consists of multiple replicates.
Examples
LDS_rep(theta, t(NPpc), t(NPpc), 1200:2012, num.reps = 10, mu = mean(log(NPannual$Qa)))
[Package ldsr version 0.0.2 Index]