Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #boxes_exp$sample.type:
  2.  
  3. #boxes_exp$outcome
  4. [1] 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 0 0 1
  5. 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 1 0 0 0 0 0..... (levels: 0, 1)
  6.  
  7. #plot(effect("sample.type", m1), x.var="sample.type",
  8. main="outcome in relation to sample type",
  9. multiline=TRUE,confint=TRUE,ci.style="none")
  10.  
  11. #Using package visreg:
  12. visreg(m1, "sample.type", type = "conditional",main="Outcome in relation
  13. to Sample type", xlab = "Sample type", ylab = "outcome")
  14.  
  15. #mosaicplot(table(boxes_exp$sample.type, boxes_exp$outcome))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement