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
area specific linear time trendHi All, Question 1: I'm running a difference-in-differences analysis on yearly repeated cross-se…
new command -rdcont- on SSC: test of running variable continuity in RDDHello all! Thanks to Kit Baum, a new package rdcont is now downloadable from SSC! This program can b…
Changing many values at onceHi all, I am working with panel data from a household survey. For each household (nohhold), multipl…
Issue with three-dimensional panel data analysisHi, I am new with STATA and I would like some advice for the following problem: I am dealing with p…
Fairlie decompositionHello, I am using the fairlie STATA module for decomposition (https://ideas.repec.org/c/boc/bocode/…
Subscribe to:
Post Comments (Atom)
0 Response to Histograms in loop
Post a Comment