Vector literal in JAGS/WinBUGS

160 views Asked by At

Is there any way how to write a vector literal in JAGS/WinBUGS? I tried these in JAGS, all result in an error:

pi <- [p*q, p*(1-q)*q, p*pow(1-q,2)*q, p*pow(1-q,3)*q]
pi <- (p*q, p*(1-q)*q, p*pow(1-q,2)*q, p*pow(1-q,3)*q)
pi <- c(p*q, p*(1-q)*q, p*pow(1-q,2)*q, p*pow(1-q,3)*q)

I don't want to assign them one by one.

Haven't actually find anything useful here or in the manual.

0

There are 0 answers