Dear EpiData users.
I have a small problem with EpiData which I was hoping someone had the answer for?
Setup:
I have two tables of data which are related to each other.
In the primary data table (stamdata) I have a variable which I want to repeat in the related data table (spørgeskemaer). I have seen on EpiData's homepage that this is a feature EpiData can handle, however, I do not know how to set it up?
Can anyone help?
Many thanks.
Henrik.
_____________________________________
Henrik Lauridsen
Studieadjunkt, Ph.d.-studerende
Institut for Idræt og Biomekanik
Syddansk Universitet
Campusvej 55
5230 Odense M
Tlf. 65 50 34 87
Hi Henrik,
Hopefully you have found an answer to your question by now. Otherwise, have a look at the following example (an adaption of the house example on www.epidata.dk):
-------------- Begin primary.chk --------------
DEFINE TEMPVAR __________ GLOBAL
var1 AFTER ENTRY TEMPVAR = var1 END END
-------------- End primary.chk --------------
-------------- Begin related.chk --------------
* set var1 (or any other var) in the BEFORE RECORD step or ... BEFORE RECORD var1 = TEMPVAR END
* ... set it in the BEFORE ENTRY STEP of the variable (i.e. var1)
var1 BEFORE ENTRY var1 = TEMPVAR END END
-------------- End related.chk --------------
If the variable in question is your identifier, use the -KEY [UNIQUE]- command instead - see the house example. Use the -RELATE- command to relate your data sheets (again, see house example).
/Jesper
Regards,
Jesper Kjær Hansen Student Assistant Department of Statistics University of Southern Denmark mailto:kjaer.hansen@oncable.dk
*---------------------------------------------* | Call me with Skype: callto://kjaer.hansen | | or find me on MSN Messenger | *---------------------------------------------*
-----Oprindelig meddelelse----- Fra: epidata-list-bounces@lists.umanitoba.ca [mailto:epidata-list-bounces@lists.umanitoba.ca] På vegne af epidata-list@lists.umanitoba.ca Sendt: 10. august 2004 13:46 Til: epidata-list@lists.umanitoba.ca Emne: [Epidata-list] How to repeat a field
Dear EpiData users.
I have a small problem with EpiData which I was hoping someone had the answer for?
Setup:
I have two tables of data which are related to each other.
In the primary data table (stamdata) I have a variable which I want to repeat in the related data table (spørgeskemaer). I have seen on EpiData's homepage that this is a feature EpiData can handle, however, I do not know how to set it up?
Can anyone help?
Many thanks.
Henrik.
_____________________________________
Henrik Lauridsen
Studieadjunkt, Ph.d.-studerende
Institut for Idræt og Biomekanik
Syddansk Universitet
Campusvej 55
5230 Odense M
Tlf. 65 50 34 87
_______________________________________________ Epidata-list mailing list Epidata-list@lists.umanitoba.ca http://lists.umanitoba.ca/mailman/listinfo/epidata-list
participants (1)
-
epidata-list@lists.umanitoba.ca