Re: [R] Use correlation matrix to get values for a new data frame

2013-10-29 Thread Greg Snow
I am not sure that I fully understand your question, but the mvrnorm function in the MASS package may do what you want. It will generate multivariate normal data with a specified correlation(covariance). If that is not what you want then try to explain a bit more about what you want your final re

[R] Use correlation matrix to get values for a new data frame

2013-10-27 Thread tobias schlager
Dear all, i am a bit stuck with a problem right now. Specifically, I have a correlation matrix, and a dataframe on which I want to project the values. However, I am not sure how I can do this. Here the calculations I made, I wanted to get a matrix that shows the values for each of the combina