Displaying 1 result from an estimated 1 matches for "vec_i".
Did you mean:
vec_a
2011 Nov 22
1
Generate Simulation
...I want
to generate 50 matrices -for my 50 simulations - with the same dimensions!
I took my 1st matrix according to the formula that I want to implement:
D<-mean_m + U_i*mat_DELTA
mean_m:vector
U_I:vector
mat_Delta:matrix(54,30)
Here is the loop:
#Define Simulations(IS)
#Define Time Step(IT)
vec_IS<-c(1:50)
vec_IT<-c(1:30)
mat_delta<-matrix(nrow=54, ncol=30)
mat_DELTA<-matrix(nrow=54, ncol=30)
mat_Yr_m<-matrix(nrow=54, ncol=30)
D<-matrix(nrow=30, ncol=54)
DELTA<-(matrix(nrow=30,ncol=54))*50
for (i in 1:length(vec_IS)){
for (j in 1:length(vec_IT)){...