*** Data management through e-social science, www.dames.org.uk *** *** Stata format recoding of Units of Assessment for benefit of comparison between *** UK RAE 2001 and 2008 unit of assessment numeric codes ** *** Paul Lambert / Vernon Gayle, 5 January 2009 ** ** Usage: ensure a macro called uoa01var is set to a numeric variable with the 2001 UoA codes in it; * and/or ensure a macro called uoa08var is set to a numeric variable with the 2008 codes in it; ** these variables will be recoded to harmonised codes covering comparable subjects at both RAEs ** (the output is a variable coded in a 'harmonised' cross panel uoa number) ** ** {Comment: the programme might trip if you've inadvertently defined one or the other macros previously ** and haven't changed that definition - we recommend defining both macros as different names before ** running the do file, even if one of them is a non-existent variable} *** #delimit ; ** 2001 codes to harmonised measure; capture recode $uoa01var 1 = 101 3 = 102 2 = 103 4 = 105 10 = 106 11 = 107 8 = 108 9 = 108 14 = 109 5 = 110 6 = 110 7 = 110 15 = 111 16 = 111 17 = 111 20 = 112 21 = 112 18 = 113 19 = 114 22 = 115 23 = 116 24 = 117 25 = 118 29 = 119 26 = 120 31 = 120 27 = 121 28 = 122 30 = 123 32 = 124 33 = 125 34 = 126 35 = 127 58 = 128 38 = 129 44 = 130 43 = 131 61 = 132 36 = 133 39 = 134 40 = 135 41 = 135 42 = 136 37 = 137 13 = 139 68 = 140 69 = 141 45 = 142 46 = 143 47 = 144 48 = 145 54 = 146 51 = 147 52 = 148 53 = 149 55 = 150 49 = 151 50 = 152 56 = 153 57 = 154 62 = 155 63 = 156 59 = 157 64 = 158 60 = 159 66 = 160 65 = 161 67 = 162 * = -9; ***; ** 2008 codes to harmonised measure; capture recode $uoa08var 1 = 101 2 = 101 3 = 101 4 = 102 5 = 101 6 = 103 7 = 103 8 = 103 9 = 102 10 = 105 11 = 106 12 = 107 13 = 108 14 = 109 15 = 110 16 = 111 17 = 112 18 = 113 19 = 114 20 = 115 21 = 116 22 = 117 23 = 118 24 = 119 25 = 120 26 = 121 27 = 122 28 = 123 29 = 124 30 = 125 31 = 126 32 = 127 33 = 128 34 = 129 35 = 130 36 = 131 37 = 132 38 = 133 39 = 134 40 = 135 41 = 136 42 = 137 43 = 127 44 = 139 45 = 140 46 = 141 47 = 142 48 = 143 49 = 144 50 = 145 51 = 146 52 = 147 53 = 148 54 = 149 55 = 150 56 = 151 57 = 152 58 = 153 59 = 154 60 = 155 61 = 156 62 = 157 63 = 158 64 = 159 65 = 160 66 = 161 67 = 162 * = -9 ; ***; #delimit cr ****************************************** **** EOF