Page 1 of 1

Calculating statistical significance of correlations in multivariate models

Posted: Mon Jan 10, 2022 12:37 pm
by vmliserlux
Hello,

I am running a multivariate multilevel model with 2 outcomes. I am interested in checking if the correlations between the residual outcomes are significant. As per your example, I have used the following code to calculate the correlation at Level 2:
display [RP2]cov(cons_1\cons_2)/sqrt([RP2]var(cons_1)*[RP2]var(cons_2)

Can you advise on the code or command I can use to check if the correlation is statistically significant?

Many thanks,
Valerie

Re: Calculating statistical significance of correlations in multivariate models

Posted: Mon Jan 17, 2022 12:17 pm
by ChrisCharlton
I asked George about this and his response was that you can use the nlcom command for this, i.e.:

Code: Select all

nlcom [RP2]cov(cons_1\cons_2)/sqrt([RP2]var(cons_1)*[RP2]var(cons_2)

Re: Calculating statistical significance of correlations in multivariate models

Posted: Tue Jan 18, 2022 1:41 pm
by vmliserlux
Dear Chris, this works - thanks very much. Best regards, Valerie