Dear all, 
 
my problem is following. I know Stata, but currently I have to use R. Could You please 
help in finding the analogy to R.
 
(1) creating of City-Dummy.
 
I know in Stata:
 
g byte city=0
replace city=1 if city==12&year==2000
 
and 
 
(2) Create a Time-Dummy-Variable
 
g byte T2000=0
replace T2000=1 if year==2000
 
(3) I need the City DUmmy for the following combination: I have the financial flows 
between two cities in the state and I need the paired-Dummy for the exporter (state1) 
and importer (state2):
 
g byte city11=0
replace city11=1 if state1==12�state2==12
 
(4) I am interesting in residuals for particular city==12. I have the Dummy for 
City==12 and regress it on Y-Variable. How could I extract from the output in R the 
residulas for city==12 (1) to plot this residuals and residuals from other regions in 
boxplot and (2) to etsimate the confidence interval. 
 
Thanks very much in advice,
 
Susan
 
 
 



---------------------------------


        [[alternative HTML version deleted]]

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to