Dear Pierre-Yves:
Explicitly, you would have - example - a data set that you read and manipulate in EpiData Analysis [classic] as follows:
cls close read "original.rec"
* Contains variables VAR01, VAR02, .... , VAR19, VAR20 * Has 1200 records
* 1) Reduce number of variables * => keep only some variables to your choice: keep var01 var03 var05 var10 var11 var16 * if the converse gives less to write, use: * drop var02 var04 var06 var07 etc
* 2) Reduce number of records [assuming sorted by your preference] * Select only the first 500 records: select recnumber<501
* Save the new data set: savedata "reduced_set.rec" /replace
* Use the new set: cls close read "reduced_set.rec"
* All this is in the superb help file which you get with F1 in EpiData Analysis V2.2.3.187
Best regards,
Hans
On Apr 26, 2019, at 01:55, EpiData development and support epidata-list@lists.umanitoba.ca wrote:
Dear all,
I need to create a smallest datafile to work on it for logistic regression In EPIINFO6 it was very easy. the command was:
route c:\data\preclog.rec
write recfile chgt multi capot diaf foam withdraw cream depo rythm pil iud \
precl \
For epidata it is logopen "c:\data\preclog.rec"
but after, write recfile does nor work in Epidata
What is the process please?
Thanks
Dr Pierre-Yves Robillard