Hello,
My first time using a matrix (and posting a question here). Please help if you can.
I am trying to make a loop which will create a new matrix of correlations each time through a loop. I need something like this:
forvalues statamonth = 372(1)707 {
pwcorr Australia Austria Belgium Canada if statamonth==‘i’
create a matrix = r(C)
}
So for each month, I need a correlation matrix between the values for the different countries.
Thank you very much,
Stan
My first time using a matrix (and posting a question here). Please help if you can.
I am trying to make a loop which will create a new matrix of correlations each time through a loop. I need something like this:
forvalues statamonth = 372(1)707 {
pwcorr Australia Austria Belgium Canada if statamonth==‘i’
create a matrix = r(C)
}
So for each month, I need a correlation matrix between the values for the different countries.
Thank you very much,
Stan
Comment