r - Vector literal in JAGS/WinBUGS -


is there way how write vector literal in jags/winbugs? tried these in jags, result in 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 assign them 1 one.

haven't find useful here or in manual.


Comments

Popular posts from this blog

c - CUDA code not processing if block properly -

Android Capture Image From Camera -

Define custom list-style-type in CSS -