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
Constraints in a nonlinear regression with interaction termsDear all, I am running a fractional logit model, using fracglm, where Vote (the percentages of vote…
Logit regressionI want to run logit regression. My dependent var is =1 if firm pay dividend and 0 otherwise. But my …
testhere is my code: Code: regress y x1 x2 estimates store my_regress some question text HTML Cod…
Problems with lower bound for a proportion below 0 for "teffects" commandDear Statalisters, I'm using Statalist 15.1. By using the "teffects" command in a case of binary out…
Tobit model with binary endogenous regressorsDear All, Ivtobit is for Tobit model with continuous endogenous regressors. My endogenous regressor …
Subscribe to:
Post Comments (Atom)
0 Response to Histograms in loop
Post a Comment