-- *Raluca Ioana Gui* PhD Student University of Zurich | Department of Business Administration Chair for Marketing and Market Research | URPP Social Networks Andreasstrasse 15 | 8050 Zurich | Switzerland Office AND 4.44 Phone: +41 44 634 9200 | Fax: +41 44 634 2940 raluca.gui at business.uzh.ch <margot.loewenberg at business.uzh.ch> www.market-research.uzh.ch www.socialnetworks.uzh.ch
Simulating hierarchical data with correlated errors
2 messages · Raluca Gui, Greg Snow
The help page for the simfun function in the TeachingDemos package has some examples of simulating hierarchical data. Just replace the calls to rnorm with calls to mvrnorm from the MASS package with the correlation structure that you want and you will have a tool to simulate hierarchical data with correlated errors. If you want better help than that then you will need to at minimum ask a question. But you should read through the posting guide (link at the bottom of this message and all messages on the list) to learn how to ask a good question that will have the best chance of leading to a good answer.
On Tue, Apr 1, 2014 at 4:17 AM, Raluca Gui <raluca.gui at gmail.com> wrote:
-- *Raluca Ioana Gui* PhD Student University of Zurich | Department of Business Administration Chair for Marketing and Market Research | URPP Social Networks Andreasstrasse 15 | 8050 Zurich | Switzerland Office AND 4.44 Phone: +41 44 634 9200 | Fax: +41 44 634 2940 raluca.gui at business.uzh.ch <margot.loewenberg at business.uzh.ch> www.market-research.uzh.ch www.socialnetworks.uzh.ch
_______________________________________________ R-sig-mixed-models at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
Gregory (Greg) L. Snow Ph.D. 538280 at gmail.com