Hi I'm trying to use Paul Dickman's code
Source:
https://pauldickman.com/software/sta...e-standsurv.do
However when I come to this section
- The only thing I have tweaked is keeping yydx here - as I think it makes sense to keep it as it is then used to reshape
I get the following error
variable yydx already exists
Data are already long.
r(110);
Any thoughts why this is happening?
Source:
https://pauldickman.com/software/sta...e-standsurv.do
However when I come to this section
- The only thing I have tweaked is keeping yydx here - as I think it makes sense to keep it as it is then used to reshape
Code:
//reshape from wide to long to make plotting easier
keep in 1
keep id S_male* S_female* S_diff* yydx
reshape long S_male S_male@_lci S_male@_uci S_female S_female@_lci S_female@_uci S_diff S_diff@_lci S_diff@_uci, i(id) j(yydx)
I get the following error
variable yydx already exists
Data are already long.
r(110);
Any thoughts why this is happening?
Comment