dugaldfoster / LSHTM-MSC

Work for my MSc project at LSHTM
0 stars 0 forks source link

Twin Variable #9

Open dugaldfoster opened 4 years ago

dugaldfoster commented 4 years ago

Update "identification of twin" variables for all 4 datasets - see NPDataPub.R script for correct use

dugaldfoster commented 4 years ago

Completed for NPDataPub.R using following code after reshape but before Analysis section:

Edit "twin" variable to reflect whether birth was part of a multiple birth (0 no, 1 yes)

longmums$twin <- ifelse(longmums$twin > 0, 1, 0)