Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.

# st: R: Estimating the number of workers in each industry in each district - flag: Stata 9/2 SE

 From "Carlo Lazzaro" To Subject st: R: Estimating the number of workers in each industry in each district - flag: Stata 9/2 SE Date Wed, 15 Sep 2010 10:07:07 +0200

```Arka wrote:
"Now I want to estimate the number of workers
belonging to each industry in a particular district"

A quite trivial example about Arka's issue may be the following one (set
aside survey technicalities):

---------------------code begins------------------------------------
drop _all
set obs 100
g Workers=_n
g District="East" in 1/50
replace District="West" in 51/100
g Industry="Concrete" in 1/30
replace  Industry="Steel" in 31/100
g A= 1 if  District=="East" &  Industry=="Steel"
g B= 1 if  District=="West" &  Industry=="Steel"
g C= 1 if  District=="East" &  Industry=="Concrete"
---------------------code ends------------------------------------

HTH and Kind Regards,
Carlo
-----Messaggio originale-----
Da: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Per conto di Arka Roy
Chaudhuri
Inviato: mercoledì 15 settembre 2010 9.24
A: statalist@hsphsun2.harvard.edu
Oggetto: st: Estimating the number of workers in each industry in each
district

Dear All,
I have a data set which has information at the individual
level.I have variables which record the district of residence of the
individual, the industry of employment of the individual and other
demographic characterstics.The data set also comes with weights which
represents the probability that a particular household is included in
the sample.Thus all individuals belonging to a particular household
get the same weight.Now I want to estimate the number of workers
belonging to each industry in a particular district.Could anyone
please advice on the correct stata code that I should write to get my
desired estimates?Also I would be grateful if somebody could advice me
on the possible biases that might affect my estimates at the
industry-district level.I would really appreciate any help in this
regard.Thanks

Regards,
Arka
--
Arka Roy Chaudhuri
PhD Student
University of British Columbia
997-1873 East Mall
Vancouver
Ph: +1 (604) 349-8283
Email: gabuisi@gmail.com

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
```