search for: tp2526621p2526822

Displaying 1 result from an estimated 1 matches for "tp2526621p2526822".

Did you mean: tp2526621p2526621
2010 Sep 04
2
Function try and Results of a program
Hello, users. Dear users, *******I have a function f to simulate data from a model (example below used only to show my problems) f<-function(n,mean1){ a<-matrix(rnorm(n, mean1 , sd = 1),ncol=5) b<-matrix(runif(n),ncol=5) data<-rbind(a,b) out<-data out} *********I want to simulate 1000 datasets (here only 5) so I use S<-list() for (i in 1:5){ S[[i]]<-f(n=10,mean1=0)}