Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. for(ind in 1:nind) { ## nind = nrow(d$X)
  2. for(yr in 1:nyear) {
  3. logit(phi[ind,yr]) <-
  4. phi.sp[species[ind]] + ## effect of species
  5. phi.year[yr] + ## effect of year
  6. phi.pc1[species[ind]]*pc1[ind] + ## Effect of morphology, but only the PCA scores
  7. phi.pc2[species[ind]]*pc2[ind]
  8. of individuals captured)
  9. } ## (yr in 1:nyear)
  10.  
  11. PC1_2[pc1[ind],pc2[ind]]
  12. PC1_2[,] ~ dnorm(0, 0.01) # I want it to be a fixed factor
  13.  
  14. for(ind in 1:nind) { ## nind = nrow(d$X)
  15. for(yr in 1:nyear) {
  16. logit(phi[ind,yr]) <-
  17. phi.sp[species[ind]] + ## effect of species
  18. phi.year[yr] + ## effect of year
  19. phi.pc1[species[ind]]*pc1[ind] + ## Effect of morphology, but only the PCA scores
  20. phi.pc2[species[ind]]*pc2[ind] +
  21. PC1_2[pc1[ind],pc2[ind]]
  22. of individuals captured)
  23. } ## (yr in 1:year)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement