I have 300 records, each was stored in a disorderly file, "failure.REC"
So, when I preview the records, in step 5.Document (view data) this showing: id age sex event 2 0 1 25 80 1 1 28 125 0 1 36 3 1 1 19 18 0 1 44 23 0 0 12 . . . 10 0 0 21 300 0 1 39 287 1 0 58 1 0 1 23 How can I get these same records appear sorted by id, in the file failure.REC when I try to enter an new records? So when you enter the id 300, so this can then enter the id 300? I managed this trick, STATA by exporting to ... order by id, the new failure.dta Then, import failure.dta to a new failure.REC ... I am working. But it's also complicated and I do not retain the original format, let alone
id ###### sex ###### event ###### age ###### erasing {id} What is the id of the questionnaire? # # # {sex} Indicate sex # {event} What is the patient's condition at the end of the period? # {age} Age at onset of the study # #
I hope you understand my question. Carlos Ortega A. Biostatistics
You should not have those spaces in the field definitions (id # # #). I hope that you have defined id as ###.
If so, then you can do this:
In EpiData Analysis:
read failure sort id savedata failure2
Then in EpiData Entry:
revise failure.qes, changing id ### to id <idnum>
Save this file as failure2.qes Choose Enter Data and say yes when you are asked to revise failure2.rec
Now the field ID is a 5-digit id number field and will automatically go to the next higher value when you enter data.
Be sure your paper copies of data are marked with the same id number assigned by EpiData
Jamie Hockin Ottawa
Carlos wrote:
I have 300 records, each was stored in a disorderly file, "failure.REC"
How can I get these same records appear sorted by id, in the file failure.REC when I try to enter an new records? So when you enter the id 300, so this can then enter the id 300?
participants (1)
-
epidata-list@lists.umanitoba.ca