Hello everyone,
i want to use propensity score matching for impact evaluation.
I used these ado commands:
**************command 1
pscore dap_dummy_ other_fert_qty_ sowing_date_ pa_land_prep_hrs pa_caring_hrs pa_irrigation_hrs pa_ff_hrs pa_fm_hrs i.District_ i.Village_ i.Gender_ i.caste_group_ i.pre_farm_size_ i.The_man_blo_ pa_fert_qty i.Soil_type i.Soil_fert i.Soil_degr , pscore(ps) blockid(blockf1) comsup level(0.01) det
attr pa_Op_main_prod_qty dap_dummy_, pscore(ps) radius(0.1)
atts pa_Op_main_prod_qty dap_dummy_, pscore(ps) blockid(block1) comsup
attnd pa_Op_main_prod_qty dap_dummy_, pscore(ps) comsup
****************command 2
psmatch2 dap_dummy_ other_fert_qty_ sowing_date_ pa_land_prep_hrs pa_caring_hrs pa_irrigation_hrs pa_ff_hrs pa_fm_hrs i.District_ i.Village_ i.Gender_ i.caste_group_ i.pre_farm_size_ i.The_man_blo_ pa_fert_qty i.Soil_type i.Soil_fert i.Soil_degr , out( pa_Op_main_prod_qty ) n(1) com
pstest other_fert_qty_ sowing_date_ pa_land_prep_hrs pa_caring_hrs pa_irrigation_hrs pa_ff_hrs pa_fm_hrs i.District_ i.Village_ i.Gender_ i.caste_group_ i.pre_farm_size_ i.The_man_blo_ pa_fert_qty i.Soil_type i.Soil_fert i.Soil_degr , graph both
as i used categorical variables in the command like district, village, gender, caste, command does not work and get output
. pscore dap_dummy_ other_fert_qty_ sowing_date_ pa_land_prep_hrs pa_caring_hrs pa_irrigation_hrs pa_ff_hrs pa_fm_hrs i.District_ i.Village_ i.Gender_ i.caste_group_ i.pre_farm_size_ i.The_man_blo_ pa_fert_qty i.Soil_type i.Soil_fert i.Soil_degr , pscore(ps) blockid(blockf1) comsup level(0.0
> 1) det
factor-variable and time-series operators not allowed
r(101);
but when i use categorical variables without i. then it work.
can you please suggest me how to modify this command to use categorical variables as well. Thanks in advance
Related Posts with Propensity score matching command
Stationarity, Markov switchingHi everyone, I was trying to model times series with markov switching regimes. Preliminarily, do I n…
GMM for time seriesHello Statalist, 1.I am using time series data. my main equation is pbt = a0+a1pbt-1+a2pdt-1+ogt+e b…
Identifying missing Data & Interpolation of Panel DataHello, I've created a dataset of 30 countries over 30 years for 29 different variables. For some of…
Out of sample estimation following xtdpdgmmStata throws a 301 error (last estimates not found) whenever I try to use estimates from a dynamic m…
Shifting observations across rowsHello, I am fairly new to Stata and am having trouble even starting on this problem. I am working wi…
Subscribe to:
Post Comments (Atom)
0 Response to Propensity score matching command
Post a Comment