Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From   "Carlo Lazzaro" <[email protected]>
To   <[email protected]>
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: [email protected]
[mailto:[email protected]] Per conto di Arka Roy
Chaudhuri
Inviato: mercoledì 15 settembre 2010 9.24
A: [email protected]
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
Canada
Ph: +1 (604) 349-8283
Email: [email protected]

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index