[R] How to create a random matrix with conditions

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Mon Jan 28 09:19:50 CET 2013

First you must learn to be more specific in your description of what you want. That will allow others to understand what you actually want rather than guessing.

Perhaps try creating a small (3 var by 10 values) example, and describe the actual correlations you have created.

If your problem is that you don't know how to create what you want with any tool, then you should figure that out before posting here. stats.stackexchange.com might be helpful if that is the case.
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
Sent from my phone. Please excuse my brevity.

Simon Givoli <givolis at gmail.com> wrote:

>I want to create a random matrix with 15 variables, each variable
>1000 observations.
>Between each two variables, I want to define a specific (*not *random)
>correlations between them, but still saving the "randomness" of each
>variable (mean=zero, s.d=1).
>How can I do this in R?
>	[[alternative HTML version deleted]]
>R-help at r-project.org mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list