Hi Out of curiosity, how can i determine the minimum required sample size of this data in a combined form say 100 entries which r functions can i use?
R helpers Please help me combine the simulated data to a form of table where: Hypermarket have 10 rows, supermarket have 15 rows,......., spazashops with 35 rows. Hypermarket <- rnorm(10, mean=20000, sd=7000) Supermarket <- rnorm(15, mean=12000, sd=4000) Minimarket <- rnorm(20, mean=10000, sd=4000) Cornershop <- rnorm(20, mean= 8000, sd=3000) Spazashop <- rnorm(35, mean= 7000, sd=3000) i am trying to write a code to simulate data such that i have 10% of hypermarkets, 15% of supermarkets,etc. [[alternative HTML version deleted]] -----Inline Attachment Follows----- ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.