Hello Sir
Have some issues with including titles in histograms in a loop.
The code is running but no output.
Even when I got output in some other method, I am unable to get the way I want.
I want the block names as headings (ex. Achalpur)
Please help
-------------------------------------------------------------------------------------------The code is-------------------------
local districts Amhednagar Amravati Dhule Jalna Yavatmal
levels district, local(districts)
local blocks Achalpur Akole Ambad Amravati "Anjangaon S" Arni Babhulgaon Badnapur ///
Bhatkuli Bhokardan "Chandur Bz" "Chandur Ril" Chikhaldara ///
Darwha Daryapur "Dhamangaon Ril" Dharni Dhule Digras Ghansawangi ///
Ghatanji Jafrabad Jalna Jamkhed Kalamb ///
Karjat Kelapur Kopargaon Mahagaon Mantha Maregaon Morshi ///
Nagar "Nandgaon Kh" Nevasa Parner ///
Partur Pathardi Rahata Rahuri Sakri Sangamner Shevgaon Shindkhede ///
Shirpur Shrigonda Tiwsa Umarkhed Wani ///
Warud Yavatmal "Zari Jamni"
levels block, local(blocks)
foreach c of local districts {
local i=1
*di `"`: var label `dist''"'
di `"`: label (districts) `"'
histogram soc if district=="`c'" , frequency barwidth(0.05) title(`=strtoname("`c'")') xtitle(SOC)
graph save "`c'"_dt , replace
graph export `district'_dt.wmf, replace
local i=`i'+1
}
Related Posts with Histograms in loop
Generating Date IssueHello Statalist, I am having trouble converting dates. I have three date variables (daily_case_date…
JDBC connection to Google BigQuery DatabaseDoes anyone here connect to BQ using JDBC successfully? I've been trying to make this work, as I did…
Collecting Confidence Intervals from regress using statsbyHi. I want to use statsby to collect the lower and upper limits of the 95% confidence interval of a …
WTP pack with categorical variable in choice experimentHello, running a mixed logit model and have one categorical variable with three levels/categories. W…
Counts Across Unique IdentifierHi Everyone, I am working with a dataset that has foloowing varibales: 1) mrn (unique identifier) …
Subscribe to:
Post Comments (Atom)
0 Response to Histograms in loop
Post a Comment