Hi,
I am trying to reshape a long data set to wide (one observation per patient id). However, I keep getting a 'variable xxxx not found' error. This is especially confusing because prior there was a duplicate of j within i and this was identified, but once the duplicate observation was deleted the variable not found error appeared. Stata12 is up to date and I receive the same error if I try to reshape in Stata13. I also tried using other variables for j and get the same error. Any ideas of where I am going wrong or ideas for a work around would be helpful.
Thank you,
Kerry
reshape wide _all, i(demo_ptid) j(monthmerge)
(note: j = 0 12)
variable monthmerge not found
r(111);
reshape wide _all, i(demo_ptid) j(sc_visitcode)
(note: j = 1000 1120 2000 2120 2121)
variable sc_visitcode not found
r(111);
I am trying to reshape a long data set to wide (one observation per patient id). However, I keep getting a 'variable xxxx not found' error. This is especially confusing because prior there was a duplicate of j within i and this was identified, but once the duplicate observation was deleted the variable not found error appeared. Stata12 is up to date and I receive the same error if I try to reshape in Stata13. I also tried using other variables for j and get the same error. Any ideas of where I am going wrong or ideas for a work around would be helpful.
Thank you,
Kerry
reshape wide _all, i(demo_ptid) j(monthmerge)
(note: j = 0 12)
variable monthmerge not found
r(111);
reshape wide _all, i(demo_ptid) j(sc_visitcode)
(note: j = 1000 1120 2000 2120 2121)
variable sc_visitcode not found
r(111);
Comment