Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. x<-seq(1,30)
  2.  
  3. dado<-c(0.96523390,0.93066061,0.89634466,0.86213300,0.82769878,
  4. 0.79311455,0.75831596,0.72311471,0.68800759,0.65245482,0.61700818,
  5. 0.58163643,0.51021060,0.47393336,0.43788203,0.40203755,0.36614804,
  6. 0.33059801,0.29408090,0.25820874,0.22265365,0.18803136,0.15444785,
  7. 0.11931985,0.08411248,0.05098459,0.01957279,0.01358753,0.01257345,
  8. 0.00986485)
  9.  
  10. plot(x,dado,type="l")
  11.  
  12. tercil<-quantile(x,probs=1/3)
  13. abline(v=tercil,col="red",lwd=2)
  14.  
  15. x<-seq(1,30)
  16.  
  17. dado<-c(0.96523390,0.93066061,0.89634466,0.86213300,0.82769878,
  18. 0.79311455,0.75831596,0.72311471,0.68800759,0.65245482,
  19. 0.61700818,0.58163643,0.51021060,0.47393336,0.43788203,
  20. 0.40203755,0.36614804,0.33059801,0.29408090,0.25820874,
  21. 0.22265365,0.18803136,0.15444785,0.11931985,0.08411248,
  22. 0.05098459,0.01957279,0.01358753,0.01257345,0.00986485)
  23.  
  24. plot(x,dado,type="l")
  25.  
  26. tercil<-quantile(x,probs=1/3)
  27.  
  28. segments(tercil, -1, tercil, dado[ceiling(tercil)], col = "red")
  29. segments(-1, dado[ceiling(tercil)], tercil, dado[ceiling(tercil)], col = "red")
  30.  
  31. segments(tercil, -1, tercil, dado[ceiling(tercil)]+.01, col = "red")
  32. segments(-1, dado[ceiling(tercil)]+0.01, tercil, dado[ceiling(tercil)]+.01, col = "red")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement