[R] gamma distribution

pantd@unlv.nevada.edu pantd at unlv.nevada.edu
Wed Jul 27 05:10:27 CEST 2005


Hi R Users


This is a code I wrote and just want to confirm if the first 1000 values are raw
gamma (z) and the next 1000 values are transformed gamma (k) or not. As I get
2000 rows once I import into excel, the p - values beyond 1000 dont look that
good, they are very high.


--
sink("a1.txt");

for (i in 1:1000)
{
x<-rgamma(10, 2.5, scale = 10)
y<-rgamma(10, 2.5, scale = 10)
z<-wilcox.test(x, y, var.equal = FALSE)
print(z)
x1<-log(x)
y1<-log(y)
k<-wilcox.test(x1, y1, var.equal = FALSE)
print(k)
}

---
any suggestions are welcome

thanks

-devarshi




More information about the R-help mailing list