search for: t_equal

Displaying 2 results from an estimated 2 matches for "t_equal".

Did you mean: g_equal
2016 Apr 06
0
R-dvel [robustness Simulation study of 2 sample test on several combination of factors ]
...ed below nsds<-length(sds) set.seed(8) #number of simulations nSims<-10000 #set significance level,alpha for the whole simulatio alpha<-0.05 #set empty vector of length no.of _calculations_ to store p-values # Note: you have 54 calculations, not 10000 ncalcs<-dim(sample_sizes)[2]*nsds t_equal <-c(rep(0,length=ncalcs)) t_unequal <-c(rep(0,length=ncalcs)) mann <-c(rep(0,length=ncalcs)) #set up matrix for storing data from the vectors # but you do want 10000 replications of each calculation matrix_Equal<-matrix(rep(NA,ncalcs*nSims),nrow=nSims) matrix_Unequal<-matrix(rep(NA,...
2016 Apr 06
0
R-dvel [robustness Simulation study of 2 sample test on several combination of factors ]
...s.vector: testmat3<-matrix(0,nrow=5,ncol=5) for(i in 1:5) { for(j in 1:5) { testmat3[i,j]<-i+j } } as.vector(testmat3) Jim On Wed, Apr 6, 2016 at 8:04 PM, tan sj <sj_style_1125 at outlook.com> wrote: > Hi, i am sorry to interrupt, can I ask about this few problems? > > t_equal[(ss-1)*nsds+i]<-t.test(x_norm1,y_norm2,var.equal=TRUE)$p.value > 1. From above, what do "[(ss-1)*nsds+i]" brings to the code? > > 2. what is the purpose of having i (the iterative) here ? I see that dr. have set the sim as the iterative then why need to set i <-1 and set it...