clear
input str100 grouping t1 t2
"Department managers" .22 .399
"Less than year" .35 .21
"Remaining non-managers" .31 .36
end
reshape long t, i(grouping) j(treatment)
twoway (connect t treatment if grouping == "Department managers", msymbol(o)) ///
(connect t treatment if grouping == "Less than year", msymbol(o)) ///
(connect t treatment if grouping == "Remaining non-managers", msymbol(o)) ///
(scatteri .399 2 "Department managers" ///
.21 2 "Less than year" ///
.36 2 "Remaining non-managers", msymbol(none)) ///
, legend(off) xtitle("Minimum wage raise") xlabel(0 " " 1 "Before" 2 "After" 3 " ", notick) ///
ytitle("Job satisfaction") ylabel(, format(%6.2f))
Jan 7, 2018
Random graphs (124): Line plots
Labels:
Random graphs,
reshape,
twoway connected,
twoway scatteri
