SimPhiN {simStateSpace} | R Documentation |
Simulate Random Drift Matrices from the Multivariate Normal Distribution
Description
This function simulates random drift matrices
from the multivariate normal distribution.
The function ensures that the generated drift matrices are stable
using TestPhi()
.
Usage
SimPhiN(n, phi, vcov_phi_vec_l)
Arguments
n |
Positive integer. Number of replications. |
phi |
Numeric matrix.
The drift matrix ( |
vcov_phi_vec_l |
Numeric matrix.
Cholesky factorization ( |
Author(s)
Ivan Jacob Agaloos Pesigan
See Also
Other Simulation of State Space Models Data Functions:
LinSDE2SSM()
,
SimBetaN()
,
SimSSMFixed()
,
SimSSMIVary()
,
SimSSMLinGrowth()
,
SimSSMLinGrowthIVary()
,
SimSSMLinSDEFixed()
,
SimSSMLinSDEIVary()
,
SimSSMOUFixed()
,
SimSSMOUIVary()
,
SimSSMVARFixed()
,
SimSSMVARIVary()
,
TestPhi()
,
TestStability()
,
TestStationarity()
Examples
phi <- matrix(
data = c(
-0.357, 0.771, -0.450,
0.0, -0.511, 0.729,
0, 0, -0.693
),
nrow = 3
)
n <- 10
vcov_phi_vec_l <- t(chol(0.001 * diag(9)))
SimPhiN(n = n, phi = phi, vcov_phi_vec_l = vcov_phi_vec_l)
[Package simStateSpace version 1.2.2 Index]