Displaying 1 result from an estimated 1 matches for "tf4468945".
2007 Sep 17
2
problems with nested loop
Hi, everyone:
R is new to me. I am writing a nested loop to simulate data for t-test. The following code is wrong. The subscript is out of bounds. Could anyone tell me how to revise it? Thanks, Riddle Chin.
result<-matrix(ncol=5, nrow=1000)
colnames(result)<-c('N=20','N=40','N=60','N=80','N=100')
for (i in 1:1000){
for (j in