Hello
I have been trying to get the Descriptive Statistics and Correlation Table for my data set panel.
The descriptive statistics using the command: summarize comes out perfectly
My main issue is with the command correlate and/or pwcorr (i have used both) with one variable in particular: democracy
The democracy variable is either 1 or 0 signifying if a country has been classified as a democratic country or not in a particular year.
The variable has 3 more subsets:
dhigh - High Level Democracy
dmid - Mid Level Democracy
dlow - Low Level Democracy
The levels are based on the Freedom House Index.
Like the democracy variable the others are also either 1 or 0 signify the democratic level of the country in a particular year.
My problem is that when run correlation with other variables democracy and its subsets always have "."
Ex.
code: correlate loggdp logtrade polrisk popgrow govsp democracy ***pwcorr was used also
Result:
loggdp logtrade polrisk popgrow govsp democr~y
loggdp 1.0000
logtrade -0.4361 1.0000
polrisk 0.0796 0.1502 1.0000
popgrow -0.2165 -0.1561 -0.1381 1.0000
govsp -0.2327 0.2970 0.0588 -0.0700 1.0000
democracy . . . . . .
So the same thing happens for the aforementioned subsets (dhigh, dmid, dlow) when I want to find their own correlation.
Something of note I should mention. When I run the correlation of democracy with its subsets, the stata program returns values for the subsets,
but not for the democracy variable. Any help will be much appreciated.
Thank you
Related Posts with Help with Correlation
2x2 AB/BA crossover trial analysis resources/adviceHi all. I would like to conduct the analysis of a trial comparing two drugs (A and B) on reducing p…
Summarizing special character of string variable*Is there any command by which I can summarize special characters (e.g. *,-.) of string variable? …
Observations in descriptive and multivariate analysesHi, I am just writing to ask something about the observations in descriptive and multivariate analys…
Constrained systems of sfcross regressions!Hi everyone, I'm trying to do something which I'm not sure is possible with Stata. Basically, I'm …
PCA vs MCA for index with survey weightsDear All, I am trying to calculate a wealth index using Principal Component Analysis. The quintiles…
Subscribe to:
Post Comments (Atom)
0 Response to Help with Correlation
Post a Comment