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
Need help to interpret the interaction term in longitudinal dataHi statisticians, I am new to longitudinal data analysis, and currently learning by myself to be ab…
What observations are at the conditional quantile that STATA is estimatingHello, I am trying to figure out whether there is a procedure that would provide me with an indicat…
Determining the P value for trends of continuous and categorical variables over the years.Dear All, I would really be grateful if you could help me with this as I have spent more than a mon…
Static or dynamic panel data regression, test for serial correlationDear Statalist, I am running a fixed effect model (with clustering at firm level) to model investme…
views Creating box plots of the gap between two groups by decilesHello and thanks for taking your time to read an answer my question, I am working with Stata and I …
Subscribe to:
Post Comments (Atom)
0 Response to Propensity score matching command
Post a Comment