Hi Statalists,
I am currently analysing panel data and, to give an overview of the data, I want to provide summary statistics and a correlation matrix. The correlation matrix is not used to decide whether to include or not include any varibales, I just want to give a brief overview of the direction and strenghts of the correlations.
However, as I use panel data, I am not sure if this works the same way it does for regressions of time-series data.
Can I still use
or
to show the correlation or do I have to take into account special effects of panel data (e.g. do I have to group my data)? If yes, does STATA provide any commands in this respect?
In case it is relevant, I am using a non-linear (poisson) regression model with state-year-fixed effects.
All the best,
Korhan
I am currently analysing panel data and, to give an overview of the data, I want to provide summary statistics and a correlation matrix. The correlation matrix is not used to decide whether to include or not include any varibales, I just want to give a brief overview of the direction and strenghts of the correlations.
However, as I use panel data, I am not sure if this works the same way it does for regressions of time-series data.
Can I still use
Code:
correlate varlist
Code:
pwcorr varlist, star(0.01)
In case it is relevant, I am using a non-linear (poisson) regression model with state-year-fixed effects.
All the best,
Korhan
Comment