Hi,
I am looking for someone who can help me with the point option of spmap in stata. What elements should be contained in the database for the point option.
I want to represent visually the correlation between two variables (drought and conflicts), one with colors on the geographical territory and the other with points
Should I merge the two databases for the two variables I want to represent?
Here is the code that I enter in stata but it does not work
spmap using "INDDcoo.dta",id(_ID) fcolor(white) ///
point(x(x_coo) y(y_coo) ///
by(conflict) size(*1.2) fcolor(red) ///
ocolor(white...) osize(*0.5...) legenda(on) ///
legcount) ///
legend(pos(4) size(*1.4) rowgap(1.2)) ///
spmap premonsoon15 using "INDDcoo.dta",id(_ID) fcolor(white) ///
point(x(x_coo) y(y_coo) ///
by(conflict) size(*1.2) fcolor(red) ///
ocolor(white...) osize(*0.5...) legenda(on) ///
legcount) ///
legend(pos(4) size(*1.4) rowgap(1.2)) ///
Thks
Related Posts with spmap option point
IV when there is an interaction term including the endogenous variableHi, I have a regression of 'reg Y X1 X2 X1 X2 controls' and X1 is endogenous. When I use ivreg I d…
export extra statistics from ado file (with different formats)Dear All, A new/useful -xthenreg- command (forthcoming in Stata Journal) can be downloaded here (or …
Creating seasons of the year by using gen commandHi, all. I imported a dataset from excel to stata with data from seven years. I am trying to create…
Applying a conditional -if- statement to a set of variables without typing the names individually?Dear STATA Forum, I have a (hopefully simple) question about using variable shortcuts and condition…
Question about exogeneityI ran the following equations via fixed effects (one with a lead for union status, and one without a…
Subscribe to:
Post Comments (Atom)
0 Response to spmap option point
Post a Comment