Hi everyone, in my empirical analysis, I firstly use areg to do the regressions as below:
areg dif_wage dif_output x1 x2 x3 x4 if (year==2006|year == 2004|year == 2002) [aweight=pop], absorb(province_year) cluster(province)
areg dif_wage dif_output x1 x2 x3 x4 i.province_year if (year==2006|year == 2004|year == 2002) [aweight=pop], absorb(city) cluster(province)
where the weighted variable pop is the city's population which changes yearly; dif_frac_PE_output is the main independent variable, x1-x4 are other control variables
The regression results are shown as attachments.
My next step is to use the variable dif_tariff as the instrumental variable for dif_output, but the command areg can't do the instrumental variable regression. It seems that I should do the IV with the command xtreg, but xtreg can't use the time-varied variable population as the regression weight.
So how can I do the instrumental variable with the time-varied population as regression weight in the panel data model?
Related Posts with xtreg and areg, time-variant weights, instrument variable
Creating multiple new variable columns from an existingi have a dataset example below id visit_number date value test 1 2 2020-10-01 16:00 140 sodium 79 3…
Condense household observationsHi all, Apologies in advance, I'm an inexperienced undergrad. I have a dataset which has 1 househo…
Group-year FEs do not absorb the group-level treatmentHi Statalist, I'm running a DiD with a continuous treatment at the group (industry) level. The trea…
Change values without changing labelsHi, I have the following dataex for what I have a question about: Code: clear input int(H2PF1 H2PF…
Vertical axis label not showing after converting to pdfI have created a marginplot graph after running a logit regression. After editing the graph in stat…
Subscribe to:
Post Comments (Atom)
0 Response to xtreg and areg, time-variant weights, instrument variable
Post a Comment