clear capture log close *cd c:\data\publaws log using label-out.log, replace ** Stata program to label NBER Public Sector Collective ** Bargaining Laws data, output to free-format (csv) file use publaw.dta label var state "state" label var group "employee group" label var month "month of change (0=no change)" label var year "year of observation" label var rights "bargaining rights" label var scope "bargaining scope" label var election "exclusive rep?" label var term "term of recognition" label var agency "agency shop?" label var dues "due checkoff?" label var unionshp "union shop?" label var rgtowork "right to work law?" label var mediate "mediation availability" label var factfind "fact-finding availability" label var arbit "arbitration availability" label var arbscope "scope of arbitration" label var argtype "type of arbitration" label var strike "strike policy" des save publaw, replace #d ; outfile state group month year rights scope election term agency dues unionshp rgtowork mediate factfind arbit arbscope argtype strike using publaw, comma replace wide; #d cr log close