Dear members,
In the repeated cross-section data with a year, ID variables (each id has one obs of several variables each year). I give an example of several obs below.
How are the "year" fixed effects defined?
Because how I understand it is that all of the variables are year-fixed effects automatically if it is only one obs per year per person.
Thank you for Your time
In the repeated cross-section data with a year, ID variables (each id has one obs of several variables each year). I give an example of several obs below.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long id int year byte province float income byte female float(age ability) byte education int money byte status 1 2011 12 29812.887 0 18.135859 106.76603 16 0 1 2 2012 2 33014.188 0 18.315294 86.36719 11 0 0 3 2013 2 32404.89 1 17.696022 104.88181 14 0 1 4 2014 12 31095.336 0 17.065088 92.28942 12 0 0 5 2015 7 32581.693 1 17.71352 85.69922 14 0 1 6 2016 7 29671.27 1 17.580349 101.86585 9 0 1 7 2017 11 31575.59 0 17.557383 93.18036 18 3750 1 8 2018 10 32711.52 1 17.492537 87.37939 16 2750 0 9 2019 3 29105.44 0 17.428988 101.53237 13 0 1 11 2011 9 27693.943 0 18.286308 91.75433 16 0 1 12 2012 12 32964.4 0 17.446625 90.8911 14 0 1 13 2013 7 30765.293 0 17.9717 91.91203 15 0 1 14 2014 10 26139.266 1 18.45739 102.09402 11 0 1 16 2016 9 34532.61 0 17.637154 95.44534 7 0 1 17 2017 12 32833.883 0 17.975449 98.41069 15 0 1 18 2018 2 33843.992 0 17.704494 98.43553 8 0 1 19 2019 12 33728.063 1 17.970621 102.7076 14 0 1 20 2010 4 33120.875 1 17.462511 88.98417 14 0 0 21 2011 1 33249.348 0 16.400448 80.64339 12 0 0 22 2012 1 26826.977 1 18.042019 93.28941 13 0 1 23 2013 6 30122.75 1 17.098898 105.34235 12 0 1 24 2014 9 29861.41 1 17.038176 84.15969 10 0 0 25 2015 12 35292.133 0 17.681322 104.18882 14 0 1 26 2016 11 32468.97 1 17.617115 97.57513 18 2800 1 27 2017 3 32685.324 0 17.75273 85.32474 7 0 1 28 2018 8 28823.39 1 17.612053 99.17294 12 4600 0 29 2019 6 34012.49 0 17.842173 92.82205 8 0 1 30 2010 10 30025.986 1 17.729563 95.21186 12 0 1 31 2011 2 32396.9 1 17.802187 91.48524 16 0 0 32 2012 5 32705.646 1 18.252146 86.95965 13 0 1 33 2013 8 30627.637 1 17.82792 103.83566 13 0 1 34 2014 2 30335.275 0 18.178108 92.66988 16 0 0 36 2016 7 32579.043 0 17.629007 111.85743 12 0 1 37 2017 7 36481.67 1 17.377148 105.73663 16 0 1 38 2018 1 31797.56 0 17.437757 93.78928 6 0 1 39 2019 1 36271.043 0 17.88993 87.45496 15 0 0 40 2010 2 31138.33 1 18.09347 104.22853 15 0 1 41 2011 9 31009 0 17.695446 124.7212 15 0 1 42 2012 7 25055.057 0 17.70744 106.30083 10 0 0 43 2013 9 28982.37 1 17.550123 102.76665 17 0 0 44 2014 2 30036.217 1 17.378378 88.33896 16 0 1 46 2016 1 33177.246 1 18.269938 93.68339 16 0 1 47 2017 2 33540.992 1 18.04304 94.98849 15 0 1 48 2018 10 30895.016 0 16.972475 98.87803 13 3400 1 49 2019 4 33095.07 1 17.773008 98.86166 12 0 1 50 2010 12 34443.24 1 18.524137 98.06256 15 0 0 51 2011 3 31695.326 1 17.261263 93.60159 11 0 0 52 2012 8 29259.344 1 18.081472 115.06736 15 0 1 53 2013 2 26385.676 0 17.306257 89.88661 6 0 1 54 2014 6 31472.94 1 17.57203 106.82842 15 0 0 55 2015 2 35463.492 0 17.461235 116.73684 10 0 1 56 2016 7 28688.807 0 17.161497 93.7112 14 0 0 57 2017 2 31176.56 1 17.04684 106.68652 16 0 1 58 2018 5 28185.994 0 17.859959 80.82863 7 0 1 59 2019 3 31991.69 1 17.600494 93.7225 10 0 1 60 2010 12 29759.06 0 17.678795 102.97652 14 0 1 61 2011 3 31210.49 1 17.87246 101.886 7 0 1 62 2012 4 31326.34 1 17.91673 98.08376 18 0 1 63 2013 8 31509.36 0 17.296999 109.26406 9 0 0 64 2014 7 32232.84 0 17.608875 88.83168 8 0 1 65 2015 12 28671.605 0 17.271769 102.97151 10 0 1 66 2016 10 36660.832 1 16.415377 99.975 15 500 1 67 2017 8 33046.56 0 17.31026 113.959 11 2100 1 68 2018 2 33219.285 0 17.492313 94.41567 11 0 1 69 2019 1 33376.805 0 16.973154 99.10151 18 0 1 70 2010 7 29689 1 18.158052 101.4562 7 0 1 71 2011 9 30982.145 1 17.539005 86.94423 9 0 1 72 2012 2 28929.06 1 17.069536 97.82026 18 0 1 73 2013 4 30605.836 0 17.546024 84.86292 11 0 1 74 2014 7 36208.46 0 17.56107 88.08658 14 0 1 75 2015 10 30702.62 0 17.601173 87.31403 18 0 1 76 2016 2 36494.836 1 17.5857 88.73016 14 0 1 77 2017 10 35972.89 0 18.048708 99.3236 15 500 1 78 2018 4 33668.12 0 17.263882 122.86854 17 0 0 79 2019 9 30530.88 0 17.521597 104.0335 10 0 1 80 2010 5 27306.986 1 18.778166 110.91399 18 0 1 81 2011 5 29648.27 1 17.944532 123.28777 11 0 1 82 2012 1 34527.484 1 17.4768 100.00198 8 0 1 83 2013 10 31109.84 1 17.844957 92.55005 7 0 1 84 2014 4 29914.105 1 17.045359 105.53387 18 0 1 85 2015 7 29005.52 0 18.047497 98.20961 12 0 1 86 2016 9 31764.64 0 17.400244 103.44485 9 0 1 87 2017 5 29117.123 0 18.61911 77.32586 9 0 1 88 2018 9 33028.707 1 17.444605 80.99003 18 0 0 89 2019 4 33712.727 1 17.244246 100.52637 18 0 1 90 2010 12 25685.076 1 17.392403 91.03879 10 0 1 92 2012 2 36172.21 1 18.530228 77.52087 11 0 1 93 2013 1 31479.535 1 17.603947 102.9477 12 0 1 94 2014 11 33414.934 1 17.002754 115.30332 10 0 1 95 2015 4 32959.766 1 18.073647 103.27634 17 0 0 96 2016 6 33530.285 1 18.620644 104.10642 10 0 1 97 2017 5 32826.492 0 16.81348 90.53776 15 0 0 98 2018 9 35210.55 0 17.028385 89.17771 12 0 1 99 2019 1 35073.06 1 17.417858 107.77412 15 0 1 100 2010 1 32970.266 1 17.047028 104.11686 14 0 1 101 2011 6 26447.94 0 17.683737 112.67526 12 0 1 102 2012 1 34398.38 0 17.927736 104.5319 14 0 1 103 2013 12 32712.975 1 17.7004 83.07352 15 0 1 104 2014 10 25693.404 1 17.296047 83.74515 18 0 0 105 2015 10 34448.875 0 18.08226 82.70826 16 0 1 end
How are the "year" fixed effects defined?
Because how I understand it is that all of the variables are year-fixed effects automatically if it is only one obs per year per person.
Thank you for Your time
Comment