sorry, I repost the question again  

a=c(0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9) 
b=c(0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1) 
cor(a,b)= -1 

pa=qbinom(a, 1, 0.5) 
pb=qbinom(b, 1, 0.5) 
cor(pa,pb)=-0.8

but when  
pa=qbinom(a,10,0.5)
pb=qbinom(b,10,0.5)

cor(pa,pb) becomes -1 again



--
View this message in context: 
http://r.789695.n4.nabble.com/qbinom-tp4651460p4651496.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to