ddi_derivation()
# Functions that need to be wrapped in ddi_derivation()
ddi_drvcmd(syntax = "SPSS",
"RECODE V1 TO V3 (0=1) (1=0) (2=-1) INTO DEFENSE WELFARE HEALTH.")
ddi_drvdesc("VAR215.01 'Outcome of first pregnancy' (1988 NSFG=VAR611 PREGOUT1)
If R has never been pregnant (VAR203 PREGNUM EQ 0) then OUTCOM01 is
blank/inapplicable. Else, OUTCOM01 is transferred from VAR225
OUTCOME for R's 1st pregnancy.")
Run the code above in your browser using DataLab