[R] Code Verification

From: <pantd_at_unlv.nevada.edu>
Date: Wed 20 Jul 2005 - 03:28:50 EST


Hi R Users
I have a code which I am running for my thesis work. Just want to make sure that its ok. Its a t test I am conducting between two gamma distributions with different shape parameters.

the code looks like:

sink("a1.txt");

for (i in 1:1000)
{

x<-rgamma(40, 2.5, 10)  # n = 40, shape = 2.5, Scale = 10
y<-rgamma(40, 2.8, 10)  # n = 40, shape = 2.8, Scale = 10
z<-t.test(x, y)

print(z)
}

I will appreciate it if someone could tell me if its alrite or not.

thanks

-dev



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 20 03:40:54 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:50 EST