* For further details see http://www.jutze.com/research/2013-schult-et-al-differential-prediction/ * Project: Genderfairness * Purpose of this syntax: data management of the 2nd data set for the "Reanalysen" publication * * written by Johannes Schult, johannes.schult@uni-konstanz.de * last updated 2011-03-02 * * Prepare data set courtesy of Sabrina Trapmann for re-analysis. * * Open original data set (Merge_T1_T2_master.sav). GET FILE='myhome\Merge_T1_T2_master.sav'. DATASET NAME master WINDOW=FRONT. * Include only students whose native language is German. FILTER OFF. USE ALL. SELECT IF (msprach1 = "1"). EXECUTE. * Delete all cases with missing data on the variables of interest. FILTER OFF. USE ALL. SELECT IF (geschl < 9999 AND st_gang < 9999 AND hzb_note < 9999 AND note_gs < 9999 AND k_v < 9999 AND k_n < 9999). EXECUTE. * Delete previously standardized variables. DELETE VARIABLES Zk_n Zk_v. * Save standardized predictor variables. DESCRIPTIVES VARIABLES= hzb_note k_n k_v /SAVE /STATISTICS=MEAN STDDEV MIN MAX. * Recode sex. RENAME VARIABLES (geschl = female). IF(female = 1) female = 0. IF(female = 2) female = 1. VARIABLE LABELS female "sex (female)". VALUE LABELS female 0 "male" 1 "female" 2 "". EXECUTE. * Save standardized criterion variable. * GPAs are standardized within each field of study to control for differences in grading. SORT CASES BY st_gang. SPLIT FILE SEPARATE BY st_gang. DESCRIPTIVES VARIABLES=note_gs /SAVE /STATISTICS=MEAN STDDEV MIN MAX. SPLIT FILE OFF. * Reverse GPAs (in Germany, low grades are good; after reversing, they are in line with American GPAs, where high grades are good). * Then rename variables (so that variable names are similar across samples) and label them in English. COMPUTE hsgpa = Zhzb_note * (-1). COMPUTE fgpa = Znote_gs * (-1). RENAME VARIABLES (st_gang Zk_v Zk_n hzb_note note_gs = fos test_verbal test_numeric abi fgpaO). COMPUTE vn = k_n + k_v. DESCRIPTIVES VARIABLES= vn /SAVE /STATISTICS=MEAN STDDEV MIN MAX. COMPUTE test_vn = Zvn. VARIABLE LABELS hsgpa "high school grade point average (Abinote, standardized and reversed)" fgpa "frechman grade point average (college grades, standardized and reversed)" fos "field of study" test_verbal "BIS verbal score standardized" test_numeric "BIS numeric score standardized" test_vn "BIS verbal+numeric score (standardized after addition)" abi "Abinote" fgpaO "college gpa (German original scoring)". EXECUTE. * Insert mean fgpa for the one person who is the only one in their respective field of study. IF(MISSING(fgpa)) fgpa = 0. EXECUTE. * Save data set under a new name (i.e., the name of this syntax file minus cr). SAVE OUTFILE='myhome\set2V1trapmann.sav' /KEEP abi fgpaO female fos hsgpa fgpa test_verbal test_numeric test_vn /COMPRESSED. * Close window. DATASET CLOSE master.