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
shp2dta returns zero observations in coordinates fileHello everyone, As the title indicates, the command -shp2dta- is giving me a coordinates file with …
Paired or unpaired t-testI would like to compare two samples -- one sample includes all the observations in my dataset. Anoth…
forvaluesI ran the following command forvalues state_num = 1 (1) 51 { reg edge percentFRL } Trying to run t…
Value Label on statesI am trying to make a variable (state_num) for the 50 states and D.C. where Alabama ==1, Alaska ==2,…
Convert wide to long formatHello, I would like to convert wide to long format to create a panel data set, so that each 'Countr…
Subscribe to:
Post Comments (Atom)
0 Response to Propensity score matching command
Post a Comment