How to interpret the code “x=numeric(n)”?

前端 未结 0 1335
走了就别回头了
走了就别回头了 2021-01-27 06:33

I have codes in R, simulate Markov Chain

P = matrix(c(0,1,0,.2,0,.8,.1,.3,.6),nrow=3,byrow=T)
n = 10000
x = numeric(n)
pi0 = c(.5, 0, .5)
state = sample(1:3, 1, p         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题