Hi guys,
I am trying to map the result by using "spmap" command, yet keep having troubles with the error saying "master data not sorted"...
Below is the code that I used,
------------------------------------------------
use "$processed/production_regional.dta", clear
format weight_edible_ameday %4.2f
spmap weight_edible_ameday using vietmap_province_region3.dta, id(_ID) fcolor($colorscale) ///
legend(symy(*1) symx(*1) size(3) pos(4)) ///
title("Total harvest (kg/day/AME)", size($titlesize)) cln(7) ///clm(c) clb($cats) ///
note("Source: ***** crop production", size($notesize))
graph export "$maps/prod_region_weight.png", as(png) replace
------------------------------------------------
Can anyone tell me how I can resolve this problem?
Many thanks,
Manny
Related Posts with using "spmap"
combine Several observations to one observation in a given yearDear all, I need to get the SUM of Var 1. for each ID observation in 2016, for example, A person w…
Omitted variable in logistic regressionHi , I have a problem with the Logit regression result in Stata. Some of the dummy variables have be…
Create change variable for timeseries data.Hi, my problem is twofold. I downloaded a database containing gvkey, sic code, year (1995 - 2005), y…
Tabout+graph dummy variablesHi, I'd like to generate two, or three-way tables and graphs using tabout and graph, but without di…
help with stsplit in survival analysis with time-varying covariateI am doing a survival analysis with time-varying covariates. The varying covariate is "tco2_value_" …
Subscribe to:
Post Comments (Atom)
0 Response to using "spmap"
Post a Comment