Dear Clyde,
It seems i have not written the right code.While it executes without any error,i fail to get the graphs as expected.This is the code i'm using
collapse (mean) usdincome usdsavings usdcapital employees, by(trained year)
ds usdincome usdsavings usdcapital employees
local outcomes `r(varlist)'
reshape wide usdincome usdsavings usdcapital employees, i(year) j(trained)
foreach v of local outcomes {
local content: subinstr local v "usdincome usdsavings usdcapital employees" ""
label var `v'0 "`content' (usdincome usdsavings usdcapital employees) untrained"
label var `v'1 "`content' (usdincome usdsavings usdcapital employees) trained"
graph twoway connect `v'year, name(`content', replace)
}
Please advise if i have made some error in coming up with the code.
It seems i have not written the right code.While it executes without any error,i fail to get the graphs as expected.This is the code i'm using
collapse (mean) usdincome usdsavings usdcapital employees, by(trained year)
ds usdincome usdsavings usdcapital employees
local outcomes `r(varlist)'
reshape wide usdincome usdsavings usdcapital employees, i(year) j(trained)
foreach v of local outcomes {
local content: subinstr local v "usdincome usdsavings usdcapital employees" ""
label var `v'0 "`content' (usdincome usdsavings usdcapital employees) untrained"
label var `v'1 "`content' (usdincome usdsavings usdcapital employees) trained"
graph twoway connect `v'year, name(`content', replace)
}
Please advise if i have made some error in coming up with the code.
Comment