Hello Stata users:
I got stuck on a coding issue of sdid graph as I want to show the parallel trend graph after adjusting the weights by sdid. I referred to the document of Dr. Daniel Pailanir Daniel PV on Github and compiled a similar code for my case, however I always got error message `r(4023)' saying `class member function not found' after I run the estimation regardless using Stata18 or Stata15. Then I came to Statalist to search for help, I did `ssc install blindschemes', `set plotplain permanent', also I tried arranging the code in different rows, however none of them worked. Could someone give any advice? I put the code below for your information.
Any advice would be appreciated!
*************first I run the code like this*************************
*************then I also tried to put them in different lines like below**********************
I also cue some experts in this field that might know the answers, thank you so much!
Daniel PV, Jared Greathouse, Maxence Morlet, Clyde Schechter
Meng
PhD student
Ohio State Univeristy
I got stuck on a coding issue of sdid graph as I want to show the parallel trend graph after adjusting the weights by sdid. I referred to the document of Dr. Daniel Pailanir Daniel PV on Github and compiled a similar code for my case, however I always got error message `r(4023)' saying `class member function not found' after I run the estimation regardless using Stata18 or Stata15. Then I came to Statalist to search for help, I did `ssc install blindschemes', `set plotplain permanent', also I tried arranging the code in different rows, however none of them worked. Could someone give any advice? I put the code below for your information.
Any advice would be appreciated!
*************first I run the code like this*************************
Code:
sdid lskillgap_ratio adminid year hsr, vce(bootstrap) reps(100) seed(123) graph g1on g1_opt(xtitle("") ylabel(-5(0)5) scheme(plotplainblind)) g2_opt(ylabel(0(5)10) xlabel(2008(1)2018) ytitle("Lagged skillgap_ratio") xtitle("city") text( "ATT = -0.01553" "SE = (0.00363)") scheme(plotplainblind)) graph_export(sdid_1, .png)
Code:
graph g1on /// g1_opt( /// xtitle("") ylabel(-5(0)5) scheme(plotplainblind) /// ) /// g2_opt( /// ylabel(0(5)10) xlabel(2008(1)2018) ytitle("Lagged skillgap_ratio") /// xtitle("city") text( "ATT = -0.01553" "SE = (0.00363)") scheme(plotplainblind) /// ) graph_export(sdid_1, .png)
I also cue some experts in this field that might know the answers, thank you so much!
Daniel PV, Jared Greathouse, Maxence Morlet, Clyde Schechter
Meng
PhD student
Ohio State Univeristy
Comment