Please correct my code so that the new variable takes on value 1 if column treatment ==1
and column category_assetprovision =="Accepted"
and it takes on the value 0 if column treatment ==0
& column category_assetprovision =="Refused"
in Stata.
gen treatmentBreakdown = 1 if treatment ==1 & category_assetprovision =="Accepted" and 0 if treatment ==0 & category_assetprovision =="Refused"
Please correct my code so that the new variable takes on value 1 if column treatment ==1
and column category_assetprovision =="Accepted"
and it takes on the value 0 if column treatment ==0
& column category_assetprovision =="Refused"
in Stata.
gen treatmentBreakdown = 1 if treatment ==1 & category_assetprovision =="Accepted" and 0 if treatment ==0 & category_assetprovision =="Refused"