Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Panel correlation

    Hello!

    I have a panel data which has a variable which is the same across countries (common), some variables which are different across groups (regional) and some variables which are specific to individual countries. I needed to calculate correlation coefficients for each country with common, regional and country specific variables and store the coefficients. Is there a command which accomplishes it?

    Thank you!

  • #2
    You'll increase your chances of a useful answer by following the FAQ on asking questions - provide Stata code in code delimiters, readable Stata output, and sample data using dataex.

    If you want correlation matrices by country, then set up a loop over countries to run the correlations or you can use bysort country: corr *

    Comment


    • #3
      Hasan:
      is this a statistical assignment (https://www.statalist.org/forums/help#adviceextras, #4)?
      Kind regards,
      Carlo
      (Stata 19.0)

      Comment

      Working...
      X