Re: [R] Data Simulation

2012-07-08 Thread peter dalgaard
On Jul 8, 2012, at 23:39 , ycyi121 wrote: > Hi, > > I have great difficulty in simulation the a dataset based in a loading > matrix [c(1,1,1,2,3,3,3,4,4,3,2,2,1,1), 7, 2) and an error covariance matrix > is 2*I. I have to simulate a dataset with 7 variables and 50 rows. I search > a lot and did

[R] Data Simulation

2012-07-08 Thread ycyi121
Hi, I have great difficulty in simulation the a dataset based in a loading matrix [c(1,1,1,2,3,3,3,4,4,3,2,2,1,1), 7, 2) and an error covariance matrix is 2*I. I have to simulate a dataset with 7 variables and 50 rows. I search a lot and did find some information on this, for example, using rmvnor

[R] Data simulation for ANOVA decomposition into sums of squares

2011-09-30 Thread Josh B
Dear listserv, Please consider the following dataset: x <- matrix(nrow = 8, ncol = 2) colnames(matrix) <- c("classification", "soluble_fiber") x[1:4,1] <- "bagel" x[5:8,1] <- "donut" How would I simulate a dataset for a one-way fixed-effect ANOVA (where "classification" is the treatment variabl

Re: [R] Data simulation with R

2007-10-04 Thread Arne Henningsen
Hi Matiou: On Thursday 30 August 2007 13:25, Matiou wrote: > Hi, > > I am currently on a placement here at GSK for my studies, and I'm working > on Heckman Models. I have to make simulations, in order to see whether > these models are efficient or not. > > I have to generate a dataset under the f