[R] Performing repeated T tests in R

2012-04-19 Thread John Smith
I need to perform 1 T tests #I have two populations with different means Popc1<-rnorm(10,10,2) Popc2<-rnorm(10,8,2) #I created two sets of samples - each set has 1 samples, and I made a matrix of 20 rows and 1 columns to fit the data sampc1<-matrix(,20,1) for(j in 1:1

Re: [R] Performing repeated T tests in R

2012-04-19 Thread Rui Barradas
Hello, > > #I wrote a blank matrix with 1 row and 1 columns. > Why not a vector? (It would be a column vector, which might not fit your needs.) And though not really a problem, the matrix is called 't', the name of R's transpose function. I can become confusing, maybe you could call it 'tsta