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++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -