data1=data.frame("group"=c(1,2,3,4,5),
"t11"=c(0.01,0.32,0.25,0.37,0.11),
"t12"=c(0.48,0.45,0.61,0.29,0.23),
"t13"=c(0.51,0.23,0.14,0.3,0.67),
"t22"=c(0.13,0.91,0.41,0.69,0.42),
"t23"=c(0.87,0.09,0.59,0.31,0.58))
set.seed(1)
data2=data.frame("student"=c(1:20),
"group"=c(sample(1:5,rep=T,20)))
I seek to estimate how Students make transitions through grades. This is a sample data where t11 = stay in grade, t12 = move forward a grade, and t13 equals to graduating. And so on. This is data1.
I saw some very complex packages to simulate the outcomes for this type of probabilities matrix--I am wondering is there a simpler way to simulate this 10-time steps using data2 as the student body and transition them using data1?