The code I have run below states there is no observations to be seen but when i look at the data editor, all the data is there i'm confused about what is wrong
su Y1_smoke Y2_smoke Y3_smoke Y1_Male Y2_Male Y3_Male Y1_monthcigspend Y2_monthcigspend Y3_monthcigspend Y1_smokwsubs Y2_smokwsubs Y3_smokwsubs Y1_loosecigs Y2_loosecigs Y3_loosecigs Y1_DangerSmok Y2_DangerSmok Y3_DangerSmok Y1_TAX Y2_TAX Y3_TAX
keep Y1_smoke Y2_smoke Y3_smoke Y1_Male Y2_Male Y3_Male Y1_monthcigspend Y2_monthcigspend Y3_monthcigspend Y1_smokwsubs Y2_smokwsubs Y3_smokwsubs Y1_loosecigs Y2_loosecigs Y3_loosecigs Y1_DangerSmok Y2_DangerSmok Y3_DangerSmok PID Y1_TAX Y2_TAX Y3_TAX FinalWgt Stratum PSU
reshape long Y@_smoke Y@_Male Y@_monthcigspend Y@_smokwsubs Y@_loosecigs Y@_DangerSmok Y@_Tax, i(PID) j(year)
*Run the Probit Regression with tax change variables as predictors
probit Y_smoke i.Y1_TAX ii.Y2_TAX iii. Y3_TAX ///
c.Y_Male c.Y_smokwsubs Y_monthcigspend c.Y_loosecigs c.Y_DangerSmok
su Y1_smoke Y2_smoke Y3_smoke Y1_Male Y2_Male Y3_Male Y1_monthcigspend Y2_monthcigspend Y3_monthcigspend Y1_smokwsubs Y2_smokwsubs Y3_smokwsubs Y1_loosecigs Y2_loosecigs Y3_loosecigs Y1_DangerSmok Y2_DangerSmok Y3_DangerSmok Y1_TAX Y2_TAX Y3_TAX
keep Y1_smoke Y2_smoke Y3_smoke Y1_Male Y2_Male Y3_Male Y1_monthcigspend Y2_monthcigspend Y3_monthcigspend Y1_smokwsubs Y2_smokwsubs Y3_smokwsubs Y1_loosecigs Y2_loosecigs Y3_loosecigs Y1_DangerSmok Y2_DangerSmok Y3_DangerSmok PID Y1_TAX Y2_TAX Y3_TAX FinalWgt Stratum PSU
reshape long Y@_smoke Y@_Male Y@_monthcigspend Y@_smokwsubs Y@_loosecigs Y@_DangerSmok Y@_Tax, i(PID) j(year)
*Run the Probit Regression with tax change variables as predictors
probit Y_smoke i.Y1_TAX ii.Y2_TAX iii. Y3_TAX ///
c.Y_Male c.Y_smokwsubs Y_monthcigspend c.Y_loosecigs c.Y_DangerSmok
Comment