Displaying 1 result from an estimated 1 matches for "cfadata".
Did you mean:
fadata
2012 Aug 13
0
rjags error. Error parsing model file:,syntax error on line 5 near ""
...<- 1/psi[j]
}
phi[1:2,1:2] ~ dwish(R[1:2,1:2], 5) # Precision matrix
phx[1:2,1:2] <- inverse(phi[1:2,1:2]) # Variance/Covariance matrix
}
"
writeLines(modelstring,con="model.txt")
#--------------------------------------------------------
# READ IN DATA AND PREPARE FOR JAGS
cfadata = read.csv("~/Desktop/rjags stuff/nelsdata.csv",header=T)
nData = NROW(cfadata)
yname = c("getalong", "spirit", "discfair", "friends", "tchgood",
"tcherint", "tchprais", "tlisten",
"studisr&...