Re: [R] Creating Matrix

2008-05-11 Thread Claire_6700
how do i calculate the p-value of trend test Hello, I have two data. x<-c(1, 2, 1, 3, 2) y<-c(3, 1, 2, 3, 5) 1. How do i create matrix from this two. what i want is this x y 1 1 3 2 2 1 3 1 2 4 3 3 5 2 5 2. what is the best way to use chisq.test to get the p.value t

[R] Creating Matrix

2008-05-11 Thread Claire_6700
Hello, I have two data. x<-c(1, 2, 1, 3, 2) y<-c(3, 1, 2, 3, 5) How do i create matrix from this two. what i want is this x y 1 1 3 2 2 1 3 1 2 4 3 3 5 2 5 thanks Claire -- View this message in context: http://www.nabble.com/Creating-Matrix-tp17168173p17168173.html Sen

[R] scrime Package simulatedSNP function

2008-05-08 Thread Claire_6700
Hello, I need some help with the simulatedSNPs function from scrime package. I am trying to simulate some genotype of a case/control disease locus. The allele frequence are cases/controls Sample cases controls 2000 .5.10 1500 .6.40 In each of th

[R] Simulation Case/Control R Beginner

2008-05-06 Thread Claire_6700
I am looking for a way to simulate genotypes of cases and control at a disease locus in R. I am supposed to set the allele frequency as control/cases. for each of the column below simulate 200 snp dataset. I am looking at treesim function from popgen to stimulate the genotypes in R. Here is what

Re: [R] genotypes simulation

2008-05-05 Thread Claire_6700
thank you. i will take a look claire, Neil Shephard wrote: > > > > Claire_6700 wrote: >> >> Hello, >> >> I am having really hard time finding a good article about simulating >> genotypes of cases and controls at a disease locus using R. >>

[R] genotypes simulation

2008-05-05 Thread Claire_6700
Hello, I am having really hard time finding a good article about simulating genotypes of cases and controls at a disease locus using R. if you guys can point me or guide me where i can find more information, it will be helpful. thanks, Claire -- View this message in context: http://www.nabble

[R] Two sample t-test

2008-03-09 Thread Claire_6700
Hi, I want to perform t-test in R for each individual car. Here is what i have. Is there a way i can test each car? The original table (test.csv) Car Tester2 Tester2 Controller1 Controller2 Audi0.560.9 0.5 0.9 Toyota 0.2 0.9 0.9 0.2 Honda 0.5 0.9

[R] Errors in in my code

2008-03-08 Thread Claire_6700
Hi Everyone, I am very new to R. When i run the code yesterday, it was working fine. I was able to find gene annotation. somehow, today, when i try to run it again, it is giving me errors message that i don't understand. It says that it cannot open file. what file is it looking for? ###