I wrote some codes as followings:
rm(list=ls())
library(fGarch)
T <- 11
N <- 200
a <- matrix(rsnorm(N, mean = 9.32, sd = 1.43, xi = -0.01), nrow = N, ncol = 1)
b <- matrix(0L, nrow = T, ncol = N)
b[1,] <- a
And now I want the matrix b to be a randomly increasing matrix by time(T). How can I get it in R?
Aucun commentaire:
Enregistrer un commentaire