diff --git a/PM1/python-ols-and-lasso-for-wage-gap-inference.ipynb b/PM1/python-ols-and-lasso-for-wage-gap-inference.ipynb index a45a7c58..1ed2f5b1 100644 --- a/PM1/python-ols-and-lasso-for-wage-gap-inference.ipynb +++ b/PM1/python-ols-and-lasso-for-wage-gap-inference.ipynb @@ -45,7 +45,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": { "id": "Zjm2h8rt9lcJ" }, @@ -75,7 +75,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": { "id": "LYwPvICz9lcK" }, @@ -97,7 +97,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -106,198 +106,14 @@ "id": "fw1c4JHm9lcL", "outputId": "0f677a4f-17ae-4120-f189-2c8334e31506" }, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
wagelwagesexshshsgsclclgadmwsoweneexp1exp2exp3exp4occocc2indind2
09.6153852.26336410001000017.00.490.3430.24013600.0118370.018
148.0769233.872802000010000131.09.6129.79192.35213050.0105070.09
211.0576922.403126001000000118.03.245.83210.49766260.019770.04
313.9423082.634928100001000125.06.2515.62539.0625420.016990.012
428.8461543.361977100010000122.04.8410.64823.42562015.069470.022
\n", - "
" - ], - "text/plain": [ - " wage lwage sex shs hsg scl clg ad mw so we ne exp1 \\\n", - "0 9.615385 2.263364 1 0 0 0 1 0 0 0 0 1 7.0 \n", - "1 48.076923 3.872802 0 0 0 0 1 0 0 0 0 1 31.0 \n", - "2 11.057692 2.403126 0 0 1 0 0 0 0 0 0 1 18.0 \n", - "3 13.942308 2.634928 1 0 0 0 0 1 0 0 0 1 25.0 \n", - "4 28.846154 3.361977 1 0 0 0 1 0 0 0 0 1 22.0 \n", - "\n", - " exp2 exp3 exp4 occ occ2 ind ind2 \n", - "0 0.49 0.343 0.2401 3600.0 11 8370.0 18 \n", - "1 9.61 29.791 92.3521 3050.0 10 5070.0 9 \n", - "2 3.24 5.832 10.4976 6260.0 19 770.0 4 \n", - "3 6.25 15.625 39.0625 420.0 1 6990.0 12 \n", - "4 4.84 10.648 23.4256 2015.0 6 9470.0 22 " - ] - }, - "execution_count": 3, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "df.head()" ] }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -306,144 +122,7 @@ "id": "gNhXyu279lcM", "outputId": "c1aa98d2-c341-479e-a09c-32d11f49dab3" }, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
VariableAllMaleFemale
0Log Wage2.9707872.9878302.949485
1Sex0.4444660.0000001.000000
2Less then High School0.0233010.0318070.012669
3High School Graduate0.2438830.2943030.180865
4Some College0.2780580.2733310.283967
5Gollage Graduate0.3176700.2939530.347313
6Advanced Degree0.1370870.1066060.175186
7Northeast0.2277670.2219500.235037
8Midwest0.2596120.2590000.260376
9South0.2965050.2981480.294452
10West0.2161170.2209020.210135
11Experience13.76058313.78399213.731324
\n", - "
" - ], - "text/plain": [ - " Variable All Male Female\n", - "0 Log Wage 2.970787 2.987830 2.949485\n", - "1 Sex 0.444466 0.000000 1.000000\n", - "2 Less then High School 0.023301 0.031807 0.012669\n", - "3 High School Graduate 0.243883 0.294303 0.180865\n", - "4 Some College 0.278058 0.273331 0.283967\n", - "5 Gollage Graduate 0.317670 0.293953 0.347313\n", - "6 Advanced Degree 0.137087 0.106606 0.175186\n", - "7 Northeast 0.227767 0.221950 0.235037\n", - "8 Midwest 0.259612 0.259000 0.260376\n", - "9 South 0.296505 0.298148 0.294452\n", - "10 West 0.216117 0.220902 0.210135\n", - "11 Experience 13.760583 13.783992 13.731324" - ] - }, - "execution_count": 4, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "table = pd.DataFrame()\n", "\n", @@ -467,7 +146,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -476,293 +155,14 @@ "id": "o9K4z3T59lcN", "outputId": "18d93e64-ac44-4606-fc0a-db0fdb459667" }, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
wagelwagesexshshsgsclclgadmwsoweneexp1exp2exp3exp4occocc2indind2
count5150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.0000005150.000000
mean23.4104102.9707870.4444660.0233010.2438830.2780580.3176700.1370870.2596120.2965050.2161170.22776713.7605833.0189258.23586725.1180385310.73747611.6708746629.15495113.316893
std21.0030160.5703850.4969550.1508720.4294650.4480860.4656160.3439730.4384640.4567610.4116350.41943210.6094654.00090414.48896253.53022511874.3560806.9666845333.4439925.701019
min3.0219781.1059120.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.00000010.0000001.000000370.0000002.000000
25%13.4615382.5998370.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000005.0000000.2500000.1250000.0625001740.0000005.0000004880.0000009.000000
50%19.2307692.9565120.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.0000000.00000010.0000001.0000001.0000001.0000004040.00000013.0000007370.00000014.000000
75%27.7777783.3242361.0000000.0000000.0000001.0000001.0000000.0000001.0000001.0000000.0000000.00000021.0000004.4100009.26100019.4481005610.00000017.0000008190.00000018.000000
max528.8456736.2706971.0000001.0000001.0000001.0000001.0000001.0000001.0000001.0000001.0000001.00000047.00000022.090000103.823000487.968100100000.00000022.000000100000.00000022.000000
\n", - "
" - ], - "text/plain": [ - " wage lwage sex shs hsg \\\n", - "count 5150.000000 5150.000000 5150.000000 5150.000000 5150.000000 \n", - "mean 23.410410 2.970787 0.444466 0.023301 0.243883 \n", - "std 21.003016 0.570385 0.496955 0.150872 0.429465 \n", - "min 3.021978 1.105912 0.000000 0.000000 0.000000 \n", - "25% 13.461538 2.599837 0.000000 0.000000 0.000000 \n", - "50% 19.230769 2.956512 0.000000 0.000000 0.000000 \n", - "75% 27.777778 3.324236 1.000000 0.000000 0.000000 \n", - "max 528.845673 6.270697 1.000000 1.000000 1.000000 \n", - "\n", - " scl clg ad mw so \\\n", - "count 5150.000000 5150.000000 5150.000000 5150.000000 5150.000000 \n", - "mean 0.278058 0.317670 0.137087 0.259612 0.296505 \n", - "std 0.448086 0.465616 0.343973 0.438464 0.456761 \n", - "min 0.000000 0.000000 0.000000 0.000000 0.000000 \n", - "25% 0.000000 0.000000 0.000000 0.000000 0.000000 \n", - "50% 0.000000 0.000000 0.000000 0.000000 0.000000 \n", - "75% 1.000000 1.000000 0.000000 1.000000 1.000000 \n", - "max 1.000000 1.000000 1.000000 1.000000 1.000000 \n", - "\n", - " we ne exp1 exp2 exp3 \\\n", - "count 5150.000000 5150.000000 5150.000000 5150.000000 5150.000000 \n", - "mean 0.216117 0.227767 13.760583 3.018925 8.235867 \n", - "std 0.411635 0.419432 10.609465 4.000904 14.488962 \n", - "min 0.000000 0.000000 0.000000 0.000000 0.000000 \n", - "25% 0.000000 0.000000 5.000000 0.250000 0.125000 \n", - "50% 0.000000 0.000000 10.000000 1.000000 1.000000 \n", - "75% 0.000000 0.000000 21.000000 4.410000 9.261000 \n", - "max 1.000000 1.000000 47.000000 22.090000 103.823000 \n", - "\n", - " exp4 occ occ2 ind ind2 \n", - "count 5150.000000 5150.000000 5150.000000 5150.000000 5150.000000 \n", - "mean 25.118038 5310.737476 11.670874 6629.154951 13.316893 \n", - "std 53.530225 11874.356080 6.966684 5333.443992 5.701019 \n", - "min 0.000000 10.000000 1.000000 370.000000 2.000000 \n", - "25% 0.062500 1740.000000 5.000000 4880.000000 9.000000 \n", - "50% 1.000000 4040.000000 13.000000 7370.000000 14.000000 \n", - "75% 19.448100 5610.000000 17.000000 8190.000000 18.000000 \n", - "max 487.968100 100000.000000 22.000000 100000.000000 22.000000 " - ] - }, - "execution_count": 5, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "df.describe()" ] }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -770,30 +170,7 @@ "id": "HX98B_G19lcN", "outputId": "f54f8bfe-fe57-4787-a048-cc61aadffccb" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\\begin{tabular}{llrrr}\n", - " & Variable & All & Male & Female \\\\\n", - "0 & Log Wage & 2.970787 & 2.987830 & 2.949485 \\\\\n", - "1 & Sex & 0.444466 & 0.000000 & 1.000000 \\\\\n", - "2 & Less then High School & 0.023301 & 0.031807 & 0.012669 \\\\\n", - "3 & High School Graduate & 0.243883 & 0.294303 & 0.180865 \\\\\n", - "4 & Some College & 0.278058 & 0.273331 & 0.283967 \\\\\n", - "5 & Gollage Graduate & 0.317670 & 0.293953 & 0.347313 \\\\\n", - "6 & Advanced Degree & 0.137087 & 0.106606 & 0.175186 \\\\\n", - "7 & Northeast & 0.227767 & 0.221950 & 0.235037 \\\\\n", - "8 & Midwest & 0.259612 & 0.259000 & 0.260376 \\\\\n", - "9 & South & 0.296505 & 0.298148 & 0.294452 \\\\\n", - "10 & West & 0.216117 & 0.220902 & 0.210135 \\\\\n", - "11 & Experience & 13.760583 & 13.783992 & 13.731324 \\\\\n", - "\\end{tabular}\n", - "\n" - ] - } - ], + "outputs": [], "source": [ "# print to Latex\n", "print(table.style.to_latex())" @@ -810,7 +187,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -818,18 +195,7 @@ "id": "RGPNaEUC9lcO", "outputId": "d0ebcf0c-fff7-47e4-bc7f-ea162d8e76b8" }, - "outputs": [ - { - "data": { - "text/plain": [ - "-0.03834473367441449" - ] - }, - "execution_count": 7, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "# compute difference\n", "table.loc[0, 'Female'] - table.loc[0, 'Male']" @@ -854,7 +220,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -862,15 +228,7 @@ "id": "Kn6HiZnY9lcP", "outputId": "f54561d6-315c-48e5-9274-ad2a319fdf5b" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The estimated sex coefficient is -0.0383 and the corresponding robust standard error is 0.0159\n" - ] - } - ], + "outputs": [], "source": [ "nocontrol_fit = smf.ols(\"lwage ~ sex\", data=df).fit()\n", "nocontrol_est = nocontrol_fit.params['sex']\n", @@ -901,7 +259,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -910,1361 +268,7 @@ "id": "DvaliSU29lcQ", "outputId": "fdbe8b22-50db-4a42-d263-0384adf68ec2" }, - "outputs": [ - { - "data": { - "text/html": [ - "\n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "
OLS Regression Results
Dep. Variable: lwage R-squared: 0.351
Model: OLS Adj. R-squared: 0.319
Method: Least Squares F-statistic: 10.83
Date: Fri, 28 Jun 2024 Prob (F-statistic): 2.69e-305
Time: 06:55:34 Log-Likelihood: -3301.9
No. Observations: 5150 AIC: 7096.
Df Residuals: 4904 BIC: 8706.
Df Model: 245
Covariance Type: nonrobust
\n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "
coef std err t P>|t| [0.025 0.975]
Intercept 3.8603 0.429 9.006 0.000 3.020 4.701
C(occ2)[T.2] 0.1613 0.130 1.244 0.214 -0.093 0.416
C(occ2)[T.3] 0.2102 0.169 1.246 0.213 -0.121 0.541
C(occ2)[T.4] 0.0709 0.184 0.386 0.700 -0.289 0.431
C(occ2)[T.5] -0.3960 0.189 -2.100 0.036 -0.766 -0.026
C(occ2)[T.6] -0.2311 0.187 -1.236 0.217 -0.598 0.135
C(occ2)[T.7] 0.3147 0.194 1.621 0.105 -0.066 0.695
C(occ2)[T.8] -0.1875 0.169 -1.108 0.268 -0.519 0.144
C(occ2)[T.9] -0.3390 0.167 -2.027 0.043 -0.667 -0.011
C(occ2)[T.10] 0.0210 0.156 0.134 0.893 -0.286 0.328
C(occ2)[T.11] -0.6424 0.309 -2.078 0.038 -1.248 -0.036
C(occ2)[T.12] -0.0675 0.252 -0.268 0.789 -0.562 0.427
C(occ2)[T.13] -0.2330 0.232 -1.006 0.314 -0.687 0.221
C(occ2)[T.14] 0.2562 0.323 0.794 0.427 -0.376 0.889
C(occ2)[T.15] -0.1939 0.260 -0.747 0.455 -0.703 0.315
C(occ2)[T.16] -0.0551 0.147 -0.375 0.708 -0.343 0.233
C(occ2)[T.17] -0.4156 0.136 -3.053 0.002 -0.682 -0.149
C(occ2)[T.18] -0.4822 1.044 -0.462 0.644 -2.530 1.565
C(occ2)[T.19] -0.2579 0.333 -0.776 0.438 -0.910 0.394
C(occ2)[T.20] -0.3010 0.234 -1.286 0.199 -0.760 0.158
C(occ2)[T.21] -0.4272 0.221 -1.936 0.053 -0.860 0.005
C(occ2)[T.22] -0.8695 0.298 -2.922 0.003 -1.453 -0.286
C(ind2)[T.3] -1.2474 0.645 -1.932 0.053 -2.513 0.018
C(ind2)[T.4] -0.0948 0.464 -0.205 0.838 -1.004 0.814
C(ind2)[T.5] -0.5294 0.435 -1.218 0.223 -1.381 0.323
C(ind2)[T.6] -0.6222 0.435 -1.431 0.152 -1.474 0.230
C(ind2)[T.7] -0.5047 0.502 -1.005 0.315 -1.490 0.480
C(ind2)[T.8] -0.7295 0.467 -1.561 0.119 -1.646 0.187
C(ind2)[T.9] -0.8025 0.425 -1.887 0.059 -1.636 0.031
C(ind2)[T.10] -0.5806 0.481 -1.207 0.227 -1.523 0.362
C(ind2)[T.11] -0.9852 0.448 -2.198 0.028 -1.864 -0.107
C(ind2)[T.12] -0.7376 0.424 -1.738 0.082 -1.569 0.094
C(ind2)[T.13] -1.0183 0.483 -2.110 0.035 -1.965 -0.072
C(ind2)[T.14] -0.5860 0.416 -1.409 0.159 -1.401 0.229
C(ind2)[T.15] -0.3801 0.591 -0.643 0.520 -1.538 0.778
C(ind2)[T.16] -0.5704 0.439 -1.300 0.194 -1.430 0.290
C(ind2)[T.17] -0.8202 0.426 -1.925 0.054 -1.655 0.015
C(ind2)[T.18] -0.7614 0.424 -1.796 0.072 -1.592 0.070
C(ind2)[T.19] -0.8813 0.457 -1.930 0.054 -1.776 0.014
C(ind2)[T.20] -0.9099 0.448 -2.029 0.042 -1.789 -0.031
C(ind2)[T.21] -0.7587 0.441 -1.722 0.085 -1.622 0.105
C(ind2)[T.22] -0.4041 0.433 -0.933 0.351 -1.253 0.445
sex -0.0696 0.015 -4.570 0.000 -0.099 -0.040
exp1 -0.0677 0.152 -0.446 0.656 -0.366 0.230
exp1:C(occ2)[T.2] -0.0736 0.050 -1.469 0.142 -0.172 0.025
exp1:C(occ2)[T.3] -0.0715 0.064 -1.121 0.262 -0.197 0.054
exp1:C(occ2)[T.4] -0.0724 0.075 -0.968 0.333 -0.219 0.074
exp1:C(occ2)[T.5] 0.0947 0.079 1.192 0.233 -0.061 0.250
exp1:C(occ2)[T.6] -0.0349 0.071 -0.490 0.624 -0.175 0.105
exp1:C(occ2)[T.7] -0.2279 0.078 -2.904 0.004 -0.382 -0.074
exp1:C(occ2)[T.8] -0.0727 0.065 -1.126 0.260 -0.199 0.054
exp1:C(occ2)[T.9] 0.0274 0.067 0.409 0.682 -0.104 0.159
exp1:C(occ2)[T.10] 0.0076 0.058 0.130 0.897 -0.106 0.122
exp1:C(occ2)[T.11] 0.1014 0.101 1.009 0.313 -0.096 0.298
exp1:C(occ2)[T.12] -0.0863 0.087 -0.986 0.324 -0.258 0.085
exp1:C(occ2)[T.13] 0.0067 0.076 0.088 0.930 -0.143 0.156
exp1:C(occ2)[T.14] -0.1369 0.097 -1.405 0.160 -0.328 0.054
exp1:C(occ2)[T.15] -0.0400 0.090 -0.445 0.656 -0.216 0.136
exp1:C(occ2)[T.16] -0.0539 0.052 -1.035 0.301 -0.156 0.048
exp1:C(occ2)[T.17] 0.0147 0.047 0.315 0.753 -0.077 0.106
exp1:C(occ2)[T.18] 0.1074 0.472 0.228 0.820 -0.818 1.032
exp1:C(occ2)[T.19] 0.0047 0.106 0.044 0.965 -0.203 0.213
exp1:C(occ2)[T.20] 0.0243 0.074 0.327 0.744 -0.121 0.170
exp1:C(occ2)[T.21] 0.0792 0.070 1.136 0.256 -0.057 0.216
exp1:C(occ2)[T.22] 0.1093 0.088 1.241 0.215 -0.063 0.282
exp1:C(ind2)[T.3] 0.4759 0.223 2.136 0.033 0.039 0.913
exp1:C(ind2)[T.4] 0.0147 0.157 0.094 0.925 -0.293 0.323
exp1:C(ind2)[T.5] 0.1257 0.153 0.821 0.412 -0.175 0.426
exp1:C(ind2)[T.6] 0.1540 0.152 1.010 0.312 -0.145 0.453
exp1:C(ind2)[T.7] 0.1029 0.179 0.576 0.565 -0.247 0.453
exp1:C(ind2)[T.8] 0.2358 0.169 1.396 0.163 -0.095 0.567
exp1:C(ind2)[T.9] 0.1359 0.149 0.912 0.362 -0.156 0.428
exp1:C(ind2)[T.10] 0.1513 0.164 0.920 0.358 -0.171 0.474
exp1:C(ind2)[T.11] 0.3175 0.159 1.997 0.046 0.006 0.629
exp1:C(ind2)[T.12] 0.2591 0.151 1.715 0.086 -0.037 0.555
exp1:C(ind2)[T.13] 0.3396 0.167 2.035 0.042 0.012 0.667
exp1:C(ind2)[T.14] 0.1441 0.148 0.975 0.329 -0.146 0.434
exp1:C(ind2)[T.15] -0.0568 0.235 -0.242 0.809 -0.517 0.404
exp1:C(ind2)[T.16] 0.0847 0.155 0.546 0.585 -0.219 0.389
exp1:C(ind2)[T.17] 0.1729 0.151 1.142 0.253 -0.124 0.470
exp1:C(ind2)[T.18] 0.1565 0.149 1.048 0.295 -0.136 0.449
exp1:C(ind2)[T.19] 0.1516 0.162 0.935 0.350 -0.166 0.469
exp1:C(ind2)[T.20] 0.1327 0.157 0.847 0.397 -0.175 0.440
exp1:C(ind2)[T.21] 0.2191 0.156 1.409 0.159 -0.086 0.524
exp1:C(ind2)[T.22] 0.1146 0.152 0.752 0.452 -0.184 0.413
exp2 1.6363 1.691 0.968 0.333 -1.679 4.951
exp2:C(occ2)[T.2] 0.6632 0.552 1.201 0.230 -0.420 1.746
exp2:C(occ2)[T.3] 0.6415 0.710 0.903 0.366 -0.751 2.034
exp2:C(occ2)[T.4] 0.9748 0.866 1.126 0.260 -0.722 2.672
exp2:C(occ2)[T.5] -0.9779 0.974 -1.004 0.315 -2.887 0.931
exp2:C(occ2)[T.6] 0.1051 0.800 0.131 0.896 -1.464 1.674
exp2:C(occ2)[T.7] 3.1407 0.939 3.345 0.001 1.300 4.981
exp2:C(occ2)[T.8] 0.6711 0.719 0.933 0.351 -0.739 2.081
exp2:C(occ2)[T.9] 0.0232 0.763 0.030 0.976 -1.472 1.519
exp2:C(occ2)[T.10] -0.2692 0.641 -0.420 0.674 -1.525 0.986
exp2:C(occ2)[T.11] -1.0817 1.006 -1.075 0.282 -3.053 0.890
exp2:C(occ2)[T.12] 0.8324 0.934 0.891 0.373 -0.999 2.664
exp2:C(occ2)[T.13] -0.2210 0.773 -0.286 0.775 -1.736 1.294
exp2:C(occ2)[T.14] 0.7511 0.927 0.810 0.418 -1.067 2.569
exp2:C(occ2)[T.15] -0.0327 0.941 -0.035 0.972 -1.877 1.812
exp2:C(occ2)[T.16] 0.3636 0.551 0.660 0.509 -0.717 1.444
exp2:C(occ2)[T.17] -0.2659 0.486 -0.547 0.584 -1.219 0.687
exp2:C(occ2)[T.18] -2.5609 5.170 -0.495 0.620 -12.697 7.575
exp2:C(occ2)[T.19] -0.1292 1.062 -0.122 0.903 -2.211 1.952
exp2:C(occ2)[T.20] -0.3323 0.723 -0.460 0.646 -1.750 1.085
exp2:C(occ2)[T.21] -0.9100 0.685 -1.328 0.184 -2.254 0.434
exp2:C(occ2)[T.22] -0.8551 0.828 -1.033 0.302 -2.478 0.768
exp2:C(ind2)[T.3] -5.9369 2.407 -2.467 0.014 -10.655 -1.219
exp2:C(ind2)[T.4] -1.1053 1.710 -0.646 0.518 -4.458 2.247
exp2:C(ind2)[T.5] -2.0149 1.692 -1.191 0.234 -5.332 1.302
exp2:C(ind2)[T.6] -2.2278 1.682 -1.325 0.185 -5.525 1.069
exp2:C(ind2)[T.7] -1.4648 2.014 -0.727 0.467 -5.413 2.483
exp2:C(ind2)[T.8] -2.9480 1.860 -1.585 0.113 -6.594 0.698
exp2:C(ind2)[T.9] -1.7796 1.647 -1.080 0.280 -5.009 1.449
exp2:C(ind2)[T.10] -2.1973 1.774 -1.239 0.216 -5.675 1.280
exp2:C(ind2)[T.11] -3.8777 1.764 -2.199 0.028 -7.335 -0.420
exp2:C(ind2)[T.12] -3.1690 1.682 -1.884 0.060 -6.466 0.128
exp2:C(ind2)[T.13] -3.9652 1.813 -2.187 0.029 -7.520 -0.411
exp2:C(ind2)[T.14] -2.0783 1.649 -1.260 0.208 -5.311 1.155
exp2:C(ind2)[T.15] 0.1912 2.608 0.073 0.942 -4.921 5.303
exp2:C(ind2)[T.16] -1.3266 1.719 -0.772 0.440 -4.696 2.043
exp2:C(ind2)[T.17] -2.2003 1.684 -1.307 0.191 -5.501 1.101
exp2:C(ind2)[T.18] -2.2006 1.657 -1.328 0.184 -5.448 1.047
exp2:C(ind2)[T.19] -1.9309 1.788 -1.080 0.280 -5.435 1.574
exp2:C(ind2)[T.20] -1.9467 1.724 -1.129 0.259 -5.327 1.434
exp2:C(ind2)[T.21] -3.1127 1.724 -1.806 0.071 -6.492 0.267
exp2:C(ind2)[T.22] -1.8578 1.685 -1.103 0.270 -5.161 1.445
exp3 -0.9155 0.688 -1.331 0.183 -2.264 0.433
exp3:C(occ2)[T.2] -0.2039 0.221 -0.922 0.356 -0.637 0.230
exp3:C(occ2)[T.3] -0.2370 0.287 -0.826 0.409 -0.800 0.326
exp3:C(occ2)[T.4] -0.4367 0.352 -1.241 0.215 -1.127 0.253
exp3:C(occ2)[T.5] 0.3885 0.412 0.943 0.346 -0.419 1.196
exp3:C(occ2)[T.6] 0.0485 0.329 0.147 0.883 -0.597 0.694
exp3:C(occ2)[T.7] -1.3949 0.405 -3.444 0.001 -2.189 -0.601
exp3:C(occ2)[T.8] -0.2054 0.290 -0.709 0.478 -0.773 0.362
exp3:C(occ2)[T.9] -0.0910 0.314 -0.289 0.772 -0.707 0.525
exp3:C(occ2)[T.10] 0.1855 0.258 0.720 0.471 -0.319 0.690
exp3:C(occ2)[T.11] 0.3932 0.382 1.030 0.303 -0.355 1.142
exp3:C(occ2)[T.12] -0.2203 0.366 -0.602 0.547 -0.938 0.497
exp3:C(occ2)[T.13] 0.0950 0.290 0.327 0.744 -0.474 0.664
exp3:C(occ2)[T.14] -0.1444 0.334 -0.432 0.666 -0.800 0.511
exp3:C(occ2)[T.15] 0.1477 0.365 0.405 0.685 -0.567 0.862
exp3:C(occ2)[T.16] -0.0379 0.215 -0.176 0.860 -0.460 0.384
exp3:C(occ2)[T.17] 0.1510 0.188 0.804 0.421 -0.217 0.519
exp3:C(occ2)[T.18] 1.4084 1.885 0.747 0.455 -2.287 5.104
exp3:C(occ2)[T.19] 0.0923 0.404 0.228 0.819 -0.700 0.885
exp3:C(occ2)[T.20] 0.1807 0.265 0.681 0.496 -0.339 0.701
exp3:C(occ2)[T.21] 0.3779 0.255 1.480 0.139 -0.123 0.878
exp3:C(occ2)[T.22] 0.2855 0.298 0.957 0.339 -0.300 0.871
exp3:C(ind2)[T.3] 2.6666 0.981 2.719 0.007 0.744 4.589
exp3:C(ind2)[T.4] 0.7298 0.688 1.061 0.289 -0.619 2.079
exp3:C(ind2)[T.5] 0.9942 0.684 1.453 0.146 -0.347 2.336
exp3:C(ind2)[T.6] 1.0641 0.680 1.565 0.118 -0.269 2.397
exp3:C(ind2)[T.7] 0.7089 0.834 0.850 0.395 -0.926 2.344
exp3:C(ind2)[T.8] 1.2341 0.748 1.649 0.099 -0.233 2.701
exp3:C(ind2)[T.9] 0.8287 0.668 1.241 0.215 -0.480 2.138
exp3:C(ind2)[T.10] 1.0448 0.707 1.479 0.139 -0.341 2.430
exp3:C(ind2)[T.11] 1.6878 0.716 2.356 0.018 0.284 3.092
exp3:C(ind2)[T.12] 1.3734 0.684 2.009 0.045 0.033 2.714
exp3:C(ind2)[T.13] 1.6377 0.726 2.256 0.024 0.215 3.061
exp3:C(ind2)[T.14] 1.0163 0.671 1.514 0.130 -0.300 2.333
exp3:C(ind2)[T.15] 0.1879 1.030 0.182 0.855 -1.831 2.207
exp3:C(ind2)[T.16] 0.6890 0.697 0.989 0.323 -0.677 2.055
exp3:C(ind2)[T.17] 1.0086 0.684 1.475 0.140 -0.332 2.349
exp3:C(ind2)[T.18] 1.0606 0.673 1.577 0.115 -0.258 2.379
exp3:C(ind2)[T.19] 0.8960 0.723 1.240 0.215 -0.521 2.313
exp3:C(ind2)[T.20] 0.9769 0.696 1.404 0.160 -0.387 2.341
exp3:C(ind2)[T.21] 1.4415 0.700 2.060 0.039 0.070 2.813
exp3:C(ind2)[T.22] 0.9688 0.683 1.419 0.156 -0.370 2.307
exp4 0.1429 0.091 1.575 0.115 -0.035 0.321
exp4:C(occ2)[T.2] 0.0176 0.029 0.610 0.542 -0.039 0.074
exp4:C(occ2)[T.3] 0.0303 0.038 0.805 0.421 -0.044 0.104
exp4:C(occ2)[T.4] 0.0584 0.046 1.276 0.202 -0.031 0.148
exp4:C(occ2)[T.5] -0.0515 0.055 -0.938 0.349 -0.159 0.056
exp4:C(occ2)[T.6] -0.0170 0.044 -0.386 0.699 -0.103 0.069
exp4:C(occ2)[T.7] 0.1905 0.056 3.410 0.001 0.081 0.300
exp4:C(occ2)[T.8] 0.0197 0.038 0.518 0.604 -0.055 0.094
exp4:C(occ2)[T.9] 0.0190 0.042 0.451 0.652 -0.064 0.102
exp4:C(occ2)[T.10] -0.0333 0.034 -0.984 0.325 -0.100 0.033
exp4:C(occ2)[T.11] -0.0466 0.048 -0.973 0.331 -0.141 0.047
exp4:C(occ2)[T.12] 0.0110 0.047 0.234 0.815 -0.081 0.103
exp4:C(occ2)[T.13] -0.0137 0.036 -0.381 0.703 -0.084 0.057
exp4:C(occ2)[T.14] 0.0056 0.040 0.139 0.890 -0.073 0.084
exp4:C(occ2)[T.15] -0.0327 0.046 -0.708 0.479 -0.123 0.058
exp4:C(occ2)[T.16] -0.0090 0.028 -0.325 0.745 -0.063 0.045
exp4:C(occ2)[T.17] -0.0257 0.024 -1.073 0.283 -0.073 0.021
exp4:C(occ2)[T.18] -0.2121 0.220 -0.963 0.336 -0.644 0.220
exp4:C(occ2)[T.19] -0.0169 0.051 -0.330 0.741 -0.118 0.084
exp4:C(occ2)[T.20] -0.0296 0.032 -0.916 0.360 -0.093 0.034
exp4:C(occ2)[T.21] -0.0525 0.032 -1.654 0.098 -0.115 0.010
exp4:C(occ2)[T.22] -0.0351 0.036 -0.972 0.331 -0.106 0.036
exp4:C(ind2)[T.3] -0.3852 0.133 -2.898 0.004 -0.646 -0.125
exp4:C(ind2)[T.4] -0.1209 0.090 -1.344 0.179 -0.297 0.055
exp4:C(ind2)[T.5] -0.1441 0.090 -1.605 0.109 -0.320 0.032
exp4:C(ind2)[T.6] -0.1526 0.089 -1.710 0.087 -0.328 0.022
exp4:C(ind2)[T.7] -0.1002 0.112 -0.895 0.371 -0.320 0.119
exp4:C(ind2)[T.8] -0.1610 0.098 -1.643 0.100 -0.353 0.031
exp4:C(ind2)[T.9] -0.1178 0.088 -1.342 0.180 -0.290 0.054
exp4:C(ind2)[T.10] -0.1483 0.092 -1.615 0.106 -0.328 0.032
exp4:C(ind2)[T.11] -0.2323 0.094 -2.459 0.014 -0.417 -0.047
exp4:C(ind2)[T.12] -0.1873 0.090 -2.081 0.037 -0.364 -0.011
exp4:C(ind2)[T.13] -0.2156 0.095 -2.279 0.023 -0.401 -0.030
exp4:C(ind2)[T.14] -0.1484 0.088 -1.676 0.094 -0.322 0.025
exp4:C(ind2)[T.15] -0.0532 0.131 -0.405 0.685 -0.311 0.204
exp4:C(ind2)[T.16] -0.1044 0.092 -1.140 0.254 -0.284 0.075
exp4:C(ind2)[T.17] -0.1427 0.090 -1.587 0.113 -0.319 0.034
exp4:C(ind2)[T.18] -0.1546 0.089 -1.745 0.081 -0.328 0.019
exp4:C(ind2)[T.19] -0.1270 0.095 -1.338 0.181 -0.313 0.059
exp4:C(ind2)[T.20] -0.1469 0.091 -1.612 0.107 -0.325 0.032
exp4:C(ind2)[T.21] -0.2033 0.092 -2.207 0.027 -0.384 -0.023
exp4:C(ind2)[T.22] -0.1481 0.090 -1.649 0.099 -0.324 0.028
shs -0.1233 0.907 -0.136 0.892 -1.901 1.654
hsg -0.5289 0.198 -2.675 0.008 -0.917 -0.141
scl -0.2921 0.126 -2.318 0.021 -0.539 -0.045
clg -0.0412 0.070 -0.585 0.559 -0.179 0.097
mw 0.1107 0.081 1.359 0.174 -0.049 0.270
so 0.0224 0.074 0.301 0.763 -0.123 0.168
we -0.0216 0.084 -0.256 0.798 -0.187 0.143
exp1:shs -0.1920 0.196 -0.982 0.326 -0.575 0.191
exp1:hsg -0.0173 0.057 -0.303 0.762 -0.130 0.095
exp1:scl -0.0665 0.043 -1.532 0.126 -0.151 0.019
exp1:clg -0.0550 0.031 -1.774 0.076 -0.116 0.006
exp1:mw -0.0280 0.030 -0.944 0.345 -0.086 0.030
exp1:so -0.0100 0.027 -0.374 0.709 -0.062 0.042
exp1:we 0.0063 0.030 0.209 0.834 -0.053 0.065
exp2:shs 1.9005 1.450 1.310 0.190 -0.943 4.744
exp2:hsg 0.1172 0.551 0.213 0.832 -0.963 1.197
exp2:scl 0.6218 0.463 1.343 0.179 -0.286 1.529
exp2:clg 0.4097 0.380 1.077 0.281 -0.336 1.155
exp2:mw 0.2006 0.317 0.632 0.527 -0.421 0.823
exp2:so 0.0544 0.282 0.193 0.847 -0.498 0.606
exp2:we 0.0013 0.321 0.004 0.997 -0.628 0.630
exp3:shs -0.6721 0.443 -1.518 0.129 -1.540 0.196
exp3:hsg -0.0180 0.208 -0.086 0.931 -0.426 0.390
exp3:scl -0.1998 0.186 -1.077 0.282 -0.563 0.164
exp3:clg -0.1025 0.164 -0.624 0.533 -0.425 0.220
exp3:mw -0.0626 0.124 -0.504 0.614 -0.306 0.181
exp3:so -0.0116 0.108 -0.107 0.915 -0.224 0.201
exp3:we -0.0125 0.125 -0.100 0.921 -0.258 0.233
exp4:shs 0.0777 0.048 1.635 0.102 -0.015 0.171
exp4:hsg 0.0005 0.027 0.018 0.985 -0.052 0.053
exp4:scl 0.0211 0.025 0.859 0.390 -0.027 0.069
exp4:clg 0.0079 0.023 0.346 0.729 -0.037 0.052
exp4:mw 0.0062 0.016 0.393 0.694 -0.025 0.037
exp4:so 0.0003 0.014 0.023 0.982 -0.026 0.027
exp4:we 0.0018 0.016 0.111 0.912 -0.030 0.033
\n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "\n", - " \n", - "\n", - "
Omnibus: 395.012 Durbin-Watson: 1.898
Prob(Omnibus): 0.000 Jarque-Bera (JB): 1529.250
Skew: 0.303 Prob(JB): 0.00
Kurtosis: 5.600 Cond. No. 9.99e+04


Notes:
[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.
[2] The condition number is large, 9.99e+04. This might indicate that there are
strong multicollinearity or other numerical problems." - ], - "text/latex": [ - "\\begin{center}\n", - "\\begin{tabular}{lclc}\n", - "\\toprule\n", - "\\textbf{Dep. Variable:} & lwage & \\textbf{ R-squared: } & 0.351 \\\\\n", - "\\textbf{Model:} & OLS & \\textbf{ Adj. R-squared: } & 0.319 \\\\\n", - "\\textbf{Method:} & Least Squares & \\textbf{ F-statistic: } & 10.83 \\\\\n", - "\\textbf{Date:} & Fri, 28 Jun 2024 & \\textbf{ Prob (F-statistic):} & 2.69e-305 \\\\\n", - "\\textbf{Time:} & 06:55:34 & \\textbf{ Log-Likelihood: } & -3301.9 \\\\\n", - "\\textbf{No. Observations:} & 5150 & \\textbf{ AIC: } & 7096. \\\\\n", - "\\textbf{Df Residuals:} & 4904 & \\textbf{ BIC: } & 8706. \\\\\n", - "\\textbf{Df Model:} & 245 & \\textbf{ } & \\\\\n", - "\\textbf{Covariance Type:} & nonrobust & \\textbf{ } & \\\\\n", - "\\bottomrule\n", - "\\end{tabular}\n", - "\\begin{tabular}{lcccccc}\n", - " & \\textbf{coef} & \\textbf{std err} & \\textbf{t} & \\textbf{P$> |$t$|$} & \\textbf{[0.025} & \\textbf{0.975]} \\\\\n", - "\\midrule\n", - "\\textbf{Intercept} & 3.8603 & 0.429 & 9.006 & 0.000 & 3.020 & 4.701 \\\\\n", - "\\textbf{C(occ2)[T.2]} & 0.1613 & 0.130 & 1.244 & 0.214 & -0.093 & 0.416 \\\\\n", - "\\textbf{C(occ2)[T.3]} & 0.2102 & 0.169 & 1.246 & 0.213 & -0.121 & 0.541 \\\\\n", - "\\textbf{C(occ2)[T.4]} & 0.0709 & 0.184 & 0.386 & 0.700 & -0.289 & 0.431 \\\\\n", - "\\textbf{C(occ2)[T.5]} & -0.3960 & 0.189 & -2.100 & 0.036 & -0.766 & -0.026 \\\\\n", - "\\textbf{C(occ2)[T.6]} & -0.2311 & 0.187 & -1.236 & 0.217 & -0.598 & 0.135 \\\\\n", - "\\textbf{C(occ2)[T.7]} & 0.3147 & 0.194 & 1.621 & 0.105 & -0.066 & 0.695 \\\\\n", - "\\textbf{C(occ2)[T.8]} & -0.1875 & 0.169 & -1.108 & 0.268 & -0.519 & 0.144 \\\\\n", - "\\textbf{C(occ2)[T.9]} & -0.3390 & 0.167 & -2.027 & 0.043 & -0.667 & -0.011 \\\\\n", - "\\textbf{C(occ2)[T.10]} & 0.0210 & 0.156 & 0.134 & 0.893 & -0.286 & 0.328 \\\\\n", - "\\textbf{C(occ2)[T.11]} & -0.6424 & 0.309 & -2.078 & 0.038 & -1.248 & -0.036 \\\\\n", - "\\textbf{C(occ2)[T.12]} & -0.0675 & 0.252 & -0.268 & 0.789 & -0.562 & 0.427 \\\\\n", - "\\textbf{C(occ2)[T.13]} & -0.2330 & 0.232 & -1.006 & 0.314 & -0.687 & 0.221 \\\\\n", - "\\textbf{C(occ2)[T.14]} & 0.2562 & 0.323 & 0.794 & 0.427 & -0.376 & 0.889 \\\\\n", - "\\textbf{C(occ2)[T.15]} & -0.1939 & 0.260 & -0.747 & 0.455 & -0.703 & 0.315 \\\\\n", - "\\textbf{C(occ2)[T.16]} & -0.0551 & 0.147 & -0.375 & 0.708 & -0.343 & 0.233 \\\\\n", - "\\textbf{C(occ2)[T.17]} & -0.4156 & 0.136 & -3.053 & 0.002 & -0.682 & -0.149 \\\\\n", - "\\textbf{C(occ2)[T.18]} & -0.4822 & 1.044 & -0.462 & 0.644 & -2.530 & 1.565 \\\\\n", - "\\textbf{C(occ2)[T.19]} & -0.2579 & 0.333 & -0.776 & 0.438 & -0.910 & 0.394 \\\\\n", - "\\textbf{C(occ2)[T.20]} & -0.3010 & 0.234 & -1.286 & 0.199 & -0.760 & 0.158 \\\\\n", - "\\textbf{C(occ2)[T.21]} & -0.4272 & 0.221 & -1.936 & 0.053 & -0.860 & 0.005 \\\\\n", - "\\textbf{C(occ2)[T.22]} & -0.8695 & 0.298 & -2.922 & 0.003 & -1.453 & -0.286 \\\\\n", - "\\textbf{C(ind2)[T.3]} & -1.2474 & 0.645 & -1.932 & 0.053 & -2.513 & 0.018 \\\\\n", - "\\textbf{C(ind2)[T.4]} & -0.0948 & 0.464 & -0.205 & 0.838 & -1.004 & 0.814 \\\\\n", - "\\textbf{C(ind2)[T.5]} & -0.5294 & 0.435 & -1.218 & 0.223 & -1.381 & 0.323 \\\\\n", - "\\textbf{C(ind2)[T.6]} & -0.6222 & 0.435 & -1.431 & 0.152 & -1.474 & 0.230 \\\\\n", - "\\textbf{C(ind2)[T.7]} & -0.5047 & 0.502 & -1.005 & 0.315 & -1.490 & 0.480 \\\\\n", - "\\textbf{C(ind2)[T.8]} & -0.7295 & 0.467 & -1.561 & 0.119 & -1.646 & 0.187 \\\\\n", - "\\textbf{C(ind2)[T.9]} & -0.8025 & 0.425 & -1.887 & 0.059 & -1.636 & 0.031 \\\\\n", - "\\textbf{C(ind2)[T.10]} & -0.5806 & 0.481 & -1.207 & 0.227 & -1.523 & 0.362 \\\\\n", - "\\textbf{C(ind2)[T.11]} & -0.9852 & 0.448 & -2.198 & 0.028 & -1.864 & -0.107 \\\\\n", - "\\textbf{C(ind2)[T.12]} & -0.7376 & 0.424 & -1.738 & 0.082 & -1.569 & 0.094 \\\\\n", - "\\textbf{C(ind2)[T.13]} & -1.0183 & 0.483 & -2.110 & 0.035 & -1.965 & -0.072 \\\\\n", - "\\textbf{C(ind2)[T.14]} & -0.5860 & 0.416 & -1.409 & 0.159 & -1.401 & 0.229 \\\\\n", - "\\textbf{C(ind2)[T.15]} & -0.3801 & 0.591 & -0.643 & 0.520 & -1.538 & 0.778 \\\\\n", - "\\textbf{C(ind2)[T.16]} & -0.5704 & 0.439 & -1.300 & 0.194 & -1.430 & 0.290 \\\\\n", - "\\textbf{C(ind2)[T.17]} & -0.8202 & 0.426 & -1.925 & 0.054 & -1.655 & 0.015 \\\\\n", - "\\textbf{C(ind2)[T.18]} & -0.7614 & 0.424 & -1.796 & 0.072 & -1.592 & 0.070 \\\\\n", - "\\textbf{C(ind2)[T.19]} & -0.8813 & 0.457 & -1.930 & 0.054 & -1.776 & 0.014 \\\\\n", - "\\textbf{C(ind2)[T.20]} & -0.9099 & 0.448 & -2.029 & 0.042 & -1.789 & -0.031 \\\\\n", - "\\textbf{C(ind2)[T.21]} & -0.7587 & 0.441 & -1.722 & 0.085 & -1.622 & 0.105 \\\\\n", - "\\textbf{C(ind2)[T.22]} & -0.4041 & 0.433 & -0.933 & 0.351 & -1.253 & 0.445 \\\\\n", - "\\textbf{sex} & -0.0696 & 0.015 & -4.570 & 0.000 & -0.099 & -0.040 \\\\\n", - "\\textbf{exp1} & -0.0677 & 0.152 & -0.446 & 0.656 & -0.366 & 0.230 \\\\\n", - "\\textbf{exp1:C(occ2)[T.2]} & -0.0736 & 0.050 & -1.469 & 0.142 & -0.172 & 0.025 \\\\\n", - "\\textbf{exp1:C(occ2)[T.3]} & -0.0715 & 0.064 & -1.121 & 0.262 & -0.197 & 0.054 \\\\\n", - "\\textbf{exp1:C(occ2)[T.4]} & -0.0724 & 0.075 & -0.968 & 0.333 & -0.219 & 0.074 \\\\\n", - "\\textbf{exp1:C(occ2)[T.5]} & 0.0947 & 0.079 & 1.192 & 0.233 & -0.061 & 0.250 \\\\\n", - "\\textbf{exp1:C(occ2)[T.6]} & -0.0349 & 0.071 & -0.490 & 0.624 & -0.175 & 0.105 \\\\\n", - "\\textbf{exp1:C(occ2)[T.7]} & -0.2279 & 0.078 & -2.904 & 0.004 & -0.382 & -0.074 \\\\\n", - "\\textbf{exp1:C(occ2)[T.8]} & -0.0727 & 0.065 & -1.126 & 0.260 & -0.199 & 0.054 \\\\\n", - "\\textbf{exp1:C(occ2)[T.9]} & 0.0274 & 0.067 & 0.409 & 0.682 & -0.104 & 0.159 \\\\\n", - "\\textbf{exp1:C(occ2)[T.10]} & 0.0076 & 0.058 & 0.130 & 0.897 & -0.106 & 0.122 \\\\\n", - "\\textbf{exp1:C(occ2)[T.11]} & 0.1014 & 0.101 & 1.009 & 0.313 & -0.096 & 0.298 \\\\\n", - "\\textbf{exp1:C(occ2)[T.12]} & -0.0863 & 0.087 & -0.986 & 0.324 & -0.258 & 0.085 \\\\\n", - "\\textbf{exp1:C(occ2)[T.13]} & 0.0067 & 0.076 & 0.088 & 0.930 & -0.143 & 0.156 \\\\\n", - "\\textbf{exp1:C(occ2)[T.14]} & -0.1369 & 0.097 & -1.405 & 0.160 & -0.328 & 0.054 \\\\\n", - "\\textbf{exp1:C(occ2)[T.15]} & -0.0400 & 0.090 & -0.445 & 0.656 & -0.216 & 0.136 \\\\\n", - "\\textbf{exp1:C(occ2)[T.16]} & -0.0539 & 0.052 & -1.035 & 0.301 & -0.156 & 0.048 \\\\\n", - "\\textbf{exp1:C(occ2)[T.17]} & 0.0147 & 0.047 & 0.315 & 0.753 & -0.077 & 0.106 \\\\\n", - "\\textbf{exp1:C(occ2)[T.18]} & 0.1074 & 0.472 & 0.228 & 0.820 & -0.818 & 1.032 \\\\\n", - "\\textbf{exp1:C(occ2)[T.19]} & 0.0047 & 0.106 & 0.044 & 0.965 & -0.203 & 0.213 \\\\\n", - "\\textbf{exp1:C(occ2)[T.20]} & 0.0243 & 0.074 & 0.327 & 0.744 & -0.121 & 0.170 \\\\\n", - "\\textbf{exp1:C(occ2)[T.21]} & 0.0792 & 0.070 & 1.136 & 0.256 & -0.057 & 0.216 \\\\\n", - "\\textbf{exp1:C(occ2)[T.22]} & 0.1093 & 0.088 & 1.241 & 0.215 & -0.063 & 0.282 \\\\\n", - "\\textbf{exp1:C(ind2)[T.3]} & 0.4759 & 0.223 & 2.136 & 0.033 & 0.039 & 0.913 \\\\\n", - "\\textbf{exp1:C(ind2)[T.4]} & 0.0147 & 0.157 & 0.094 & 0.925 & -0.293 & 0.323 \\\\\n", - "\\textbf{exp1:C(ind2)[T.5]} & 0.1257 & 0.153 & 0.821 & 0.412 & -0.175 & 0.426 \\\\\n", - "\\textbf{exp1:C(ind2)[T.6]} & 0.1540 & 0.152 & 1.010 & 0.312 & -0.145 & 0.453 \\\\\n", - "\\textbf{exp1:C(ind2)[T.7]} & 0.1029 & 0.179 & 0.576 & 0.565 & -0.247 & 0.453 \\\\\n", - "\\textbf{exp1:C(ind2)[T.8]} & 0.2358 & 0.169 & 1.396 & 0.163 & -0.095 & 0.567 \\\\\n", - "\\textbf{exp1:C(ind2)[T.9]} & 0.1359 & 0.149 & 0.912 & 0.362 & -0.156 & 0.428 \\\\\n", - "\\textbf{exp1:C(ind2)[T.10]} & 0.1513 & 0.164 & 0.920 & 0.358 & -0.171 & 0.474 \\\\\n", - "\\textbf{exp1:C(ind2)[T.11]} & 0.3175 & 0.159 & 1.997 & 0.046 & 0.006 & 0.629 \\\\\n", - "\\textbf{exp1:C(ind2)[T.12]} & 0.2591 & 0.151 & 1.715 & 0.086 & -0.037 & 0.555 \\\\\n", - "\\textbf{exp1:C(ind2)[T.13]} & 0.3396 & 0.167 & 2.035 & 0.042 & 0.012 & 0.667 \\\\\n", - "\\textbf{exp1:C(ind2)[T.14]} & 0.1441 & 0.148 & 0.975 & 0.329 & -0.146 & 0.434 \\\\\n", - "\\textbf{exp1:C(ind2)[T.15]} & -0.0568 & 0.235 & -0.242 & 0.809 & -0.517 & 0.404 \\\\\n", - "\\textbf{exp1:C(ind2)[T.16]} & 0.0847 & 0.155 & 0.546 & 0.585 & -0.219 & 0.389 \\\\\n", - "\\textbf{exp1:C(ind2)[T.17]} & 0.1729 & 0.151 & 1.142 & 0.253 & -0.124 & 0.470 \\\\\n", - "\\textbf{exp1:C(ind2)[T.18]} & 0.1565 & 0.149 & 1.048 & 0.295 & -0.136 & 0.449 \\\\\n", - "\\textbf{exp1:C(ind2)[T.19]} & 0.1516 & 0.162 & 0.935 & 0.350 & -0.166 & 0.469 \\\\\n", - "\\textbf{exp1:C(ind2)[T.20]} & 0.1327 & 0.157 & 0.847 & 0.397 & -0.175 & 0.440 \\\\\n", - "\\textbf{exp1:C(ind2)[T.21]} & 0.2191 & 0.156 & 1.409 & 0.159 & -0.086 & 0.524 \\\\\n", - "\\textbf{exp1:C(ind2)[T.22]} & 0.1146 & 0.152 & 0.752 & 0.452 & -0.184 & 0.413 \\\\\n", - "\\textbf{exp2} & 1.6363 & 1.691 & 0.968 & 0.333 & -1.679 & 4.951 \\\\\n", - "\\textbf{exp2:C(occ2)[T.2]} & 0.6632 & 0.552 & 1.201 & 0.230 & -0.420 & 1.746 \\\\\n", - "\\textbf{exp2:C(occ2)[T.3]} & 0.6415 & 0.710 & 0.903 & 0.366 & -0.751 & 2.034 \\\\\n", - "\\textbf{exp2:C(occ2)[T.4]} & 0.9748 & 0.866 & 1.126 & 0.260 & -0.722 & 2.672 \\\\\n", - "\\textbf{exp2:C(occ2)[T.5]} & -0.9779 & 0.974 & -1.004 & 0.315 & -2.887 & 0.931 \\\\\n", - "\\textbf{exp2:C(occ2)[T.6]} & 0.1051 & 0.800 & 0.131 & 0.896 & -1.464 & 1.674 \\\\\n", - "\\textbf{exp2:C(occ2)[T.7]} & 3.1407 & 0.939 & 3.345 & 0.001 & 1.300 & 4.981 \\\\\n", - "\\textbf{exp2:C(occ2)[T.8]} & 0.6711 & 0.719 & 0.933 & 0.351 & -0.739 & 2.081 \\\\\n", - "\\textbf{exp2:C(occ2)[T.9]} & 0.0232 & 0.763 & 0.030 & 0.976 & -1.472 & 1.519 \\\\\n", - "\\textbf{exp2:C(occ2)[T.10]} & -0.2692 & 0.641 & -0.420 & 0.674 & -1.525 & 0.986 \\\\\n", - "\\textbf{exp2:C(occ2)[T.11]} & -1.0817 & 1.006 & -1.075 & 0.282 & -3.053 & 0.890 \\\\\n", - "\\textbf{exp2:C(occ2)[T.12]} & 0.8324 & 0.934 & 0.891 & 0.373 & -0.999 & 2.664 \\\\\n", - "\\textbf{exp2:C(occ2)[T.13]} & -0.2210 & 0.773 & -0.286 & 0.775 & -1.736 & 1.294 \\\\\n", - "\\textbf{exp2:C(occ2)[T.14]} & 0.7511 & 0.927 & 0.810 & 0.418 & -1.067 & 2.569 \\\\\n", - "\\textbf{exp2:C(occ2)[T.15]} & -0.0327 & 0.941 & -0.035 & 0.972 & -1.877 & 1.812 \\\\\n", - "\\textbf{exp2:C(occ2)[T.16]} & 0.3636 & 0.551 & 0.660 & 0.509 & -0.717 & 1.444 \\\\\n", - "\\textbf{exp2:C(occ2)[T.17]} & -0.2659 & 0.486 & -0.547 & 0.584 & -1.219 & 0.687 \\\\\n", - "\\textbf{exp2:C(occ2)[T.18]} & -2.5609 & 5.170 & -0.495 & 0.620 & -12.697 & 7.575 \\\\\n", - "\\textbf{exp2:C(occ2)[T.19]} & -0.1292 & 1.062 & -0.122 & 0.903 & -2.211 & 1.952 \\\\\n", - "\\textbf{exp2:C(occ2)[T.20]} & -0.3323 & 0.723 & -0.460 & 0.646 & -1.750 & 1.085 \\\\\n", - "\\textbf{exp2:C(occ2)[T.21]} & -0.9100 & 0.685 & -1.328 & 0.184 & -2.254 & 0.434 \\\\\n", - "\\textbf{exp2:C(occ2)[T.22]} & -0.8551 & 0.828 & -1.033 & 0.302 & -2.478 & 0.768 \\\\\n", - "\\textbf{exp2:C(ind2)[T.3]} & -5.9369 & 2.407 & -2.467 & 0.014 & -10.655 & -1.219 \\\\\n", - "\\textbf{exp2:C(ind2)[T.4]} & -1.1053 & 1.710 & -0.646 & 0.518 & -4.458 & 2.247 \\\\\n", - "\\textbf{exp2:C(ind2)[T.5]} & -2.0149 & 1.692 & -1.191 & 0.234 & -5.332 & 1.302 \\\\\n", - "\\textbf{exp2:C(ind2)[T.6]} & -2.2278 & 1.682 & -1.325 & 0.185 & -5.525 & 1.069 \\\\\n", - "\\textbf{exp2:C(ind2)[T.7]} & -1.4648 & 2.014 & -0.727 & 0.467 & -5.413 & 2.483 \\\\\n", - "\\textbf{exp2:C(ind2)[T.8]} & -2.9480 & 1.860 & -1.585 & 0.113 & -6.594 & 0.698 \\\\\n", - "\\textbf{exp2:C(ind2)[T.9]} & -1.7796 & 1.647 & -1.080 & 0.280 & -5.009 & 1.449 \\\\\n", - "\\textbf{exp2:C(ind2)[T.10]} & -2.1973 & 1.774 & -1.239 & 0.216 & -5.675 & 1.280 \\\\\n", - "\\textbf{exp2:C(ind2)[T.11]} & -3.8777 & 1.764 & -2.199 & 0.028 & -7.335 & -0.420 \\\\\n", - "\\textbf{exp2:C(ind2)[T.12]} & -3.1690 & 1.682 & -1.884 & 0.060 & -6.466 & 0.128 \\\\\n", - "\\textbf{exp2:C(ind2)[T.13]} & -3.9652 & 1.813 & -2.187 & 0.029 & -7.520 & -0.411 \\\\\n", - "\\textbf{exp2:C(ind2)[T.14]} & -2.0783 & 1.649 & -1.260 & 0.208 & -5.311 & 1.155 \\\\\n", - "\\textbf{exp2:C(ind2)[T.15]} & 0.1912 & 2.608 & 0.073 & 0.942 & -4.921 & 5.303 \\\\\n", - "\\textbf{exp2:C(ind2)[T.16]} & -1.3266 & 1.719 & -0.772 & 0.440 & -4.696 & 2.043 \\\\\n", - "\\textbf{exp2:C(ind2)[T.17]} & -2.2003 & 1.684 & -1.307 & 0.191 & -5.501 & 1.101 \\\\\n", - "\\textbf{exp2:C(ind2)[T.18]} & -2.2006 & 1.657 & -1.328 & 0.184 & -5.448 & 1.047 \\\\\n", - "\\textbf{exp2:C(ind2)[T.19]} & -1.9309 & 1.788 & -1.080 & 0.280 & -5.435 & 1.574 \\\\\n", - "\\textbf{exp2:C(ind2)[T.20]} & -1.9467 & 1.724 & -1.129 & 0.259 & -5.327 & 1.434 \\\\\n", - "\\textbf{exp2:C(ind2)[T.21]} & -3.1127 & 1.724 & -1.806 & 0.071 & -6.492 & 0.267 \\\\\n", - "\\textbf{exp2:C(ind2)[T.22]} & -1.8578 & 1.685 & -1.103 & 0.270 & -5.161 & 1.445 \\\\\n", - "\\textbf{exp3} & -0.9155 & 0.688 & -1.331 & 0.183 & -2.264 & 0.433 \\\\\n", - "\\textbf{exp3:C(occ2)[T.2]} & -0.2039 & 0.221 & -0.922 & 0.356 & -0.637 & 0.230 \\\\\n", - "\\textbf{exp3:C(occ2)[T.3]} & -0.2370 & 0.287 & -0.826 & 0.409 & -0.800 & 0.326 \\\\\n", - "\\textbf{exp3:C(occ2)[T.4]} & -0.4367 & 0.352 & -1.241 & 0.215 & -1.127 & 0.253 \\\\\n", - "\\textbf{exp3:C(occ2)[T.5]} & 0.3885 & 0.412 & 0.943 & 0.346 & -0.419 & 1.196 \\\\\n", - "\\textbf{exp3:C(occ2)[T.6]} & 0.0485 & 0.329 & 0.147 & 0.883 & -0.597 & 0.694 \\\\\n", - "\\textbf{exp3:C(occ2)[T.7]} & -1.3949 & 0.405 & -3.444 & 0.001 & -2.189 & -0.601 \\\\\n", - "\\textbf{exp3:C(occ2)[T.8]} & -0.2054 & 0.290 & -0.709 & 0.478 & -0.773 & 0.362 \\\\\n", - "\\textbf{exp3:C(occ2)[T.9]} & -0.0910 & 0.314 & -0.289 & 0.772 & -0.707 & 0.525 \\\\\n", - "\\textbf{exp3:C(occ2)[T.10]} & 0.1855 & 0.258 & 0.720 & 0.471 & -0.319 & 0.690 \\\\\n", - "\\textbf{exp3:C(occ2)[T.11]} & 0.3932 & 0.382 & 1.030 & 0.303 & -0.355 & 1.142 \\\\\n", - "\\textbf{exp3:C(occ2)[T.12]} & -0.2203 & 0.366 & -0.602 & 0.547 & -0.938 & 0.497 \\\\\n", - "\\textbf{exp3:C(occ2)[T.13]} & 0.0950 & 0.290 & 0.327 & 0.744 & -0.474 & 0.664 \\\\\n", - "\\textbf{exp3:C(occ2)[T.14]} & -0.1444 & 0.334 & -0.432 & 0.666 & -0.800 & 0.511 \\\\\n", - "\\textbf{exp3:C(occ2)[T.15]} & 0.1477 & 0.365 & 0.405 & 0.685 & -0.567 & 0.862 \\\\\n", - "\\textbf{exp3:C(occ2)[T.16]} & -0.0379 & 0.215 & -0.176 & 0.860 & -0.460 & 0.384 \\\\\n", - "\\textbf{exp3:C(occ2)[T.17]} & 0.1510 & 0.188 & 0.804 & 0.421 & -0.217 & 0.519 \\\\\n", - "\\textbf{exp3:C(occ2)[T.18]} & 1.4084 & 1.885 & 0.747 & 0.455 & -2.287 & 5.104 \\\\\n", - "\\textbf{exp3:C(occ2)[T.19]} & 0.0923 & 0.404 & 0.228 & 0.819 & -0.700 & 0.885 \\\\\n", - "\\textbf{exp3:C(occ2)[T.20]} & 0.1807 & 0.265 & 0.681 & 0.496 & -0.339 & 0.701 \\\\\n", - "\\textbf{exp3:C(occ2)[T.21]} & 0.3779 & 0.255 & 1.480 & 0.139 & -0.123 & 0.878 \\\\\n", - "\\textbf{exp3:C(occ2)[T.22]} & 0.2855 & 0.298 & 0.957 & 0.339 & -0.300 & 0.871 \\\\\n", - "\\textbf{exp3:C(ind2)[T.3]} & 2.6666 & 0.981 & 2.719 & 0.007 & 0.744 & 4.589 \\\\\n", - "\\textbf{exp3:C(ind2)[T.4]} & 0.7298 & 0.688 & 1.061 & 0.289 & -0.619 & 2.079 \\\\\n", - "\\textbf{exp3:C(ind2)[T.5]} & 0.9942 & 0.684 & 1.453 & 0.146 & -0.347 & 2.336 \\\\\n", - "\\textbf{exp3:C(ind2)[T.6]} & 1.0641 & 0.680 & 1.565 & 0.118 & -0.269 & 2.397 \\\\\n", - "\\textbf{exp3:C(ind2)[T.7]} & 0.7089 & 0.834 & 0.850 & 0.395 & -0.926 & 2.344 \\\\\n", - "\\textbf{exp3:C(ind2)[T.8]} & 1.2341 & 0.748 & 1.649 & 0.099 & -0.233 & 2.701 \\\\\n", - "\\textbf{exp3:C(ind2)[T.9]} & 0.8287 & 0.668 & 1.241 & 0.215 & -0.480 & 2.138 \\\\\n", - "\\textbf{exp3:C(ind2)[T.10]} & 1.0448 & 0.707 & 1.479 & 0.139 & -0.341 & 2.430 \\\\\n", - "\\textbf{exp3:C(ind2)[T.11]} & 1.6878 & 0.716 & 2.356 & 0.018 & 0.284 & 3.092 \\\\\n", - "\\textbf{exp3:C(ind2)[T.12]} & 1.3734 & 0.684 & 2.009 & 0.045 & 0.033 & 2.714 \\\\\n", - "\\textbf{exp3:C(ind2)[T.13]} & 1.6377 & 0.726 & 2.256 & 0.024 & 0.215 & 3.061 \\\\\n", - "\\textbf{exp3:C(ind2)[T.14]} & 1.0163 & 0.671 & 1.514 & 0.130 & -0.300 & 2.333 \\\\\n", - "\\textbf{exp3:C(ind2)[T.15]} & 0.1879 & 1.030 & 0.182 & 0.855 & -1.831 & 2.207 \\\\\n", - "\\textbf{exp3:C(ind2)[T.16]} & 0.6890 & 0.697 & 0.989 & 0.323 & -0.677 & 2.055 \\\\\n", - "\\textbf{exp3:C(ind2)[T.17]} & 1.0086 & 0.684 & 1.475 & 0.140 & -0.332 & 2.349 \\\\\n", - "\\textbf{exp3:C(ind2)[T.18]} & 1.0606 & 0.673 & 1.577 & 0.115 & -0.258 & 2.379 \\\\\n", - "\\textbf{exp3:C(ind2)[T.19]} & 0.8960 & 0.723 & 1.240 & 0.215 & -0.521 & 2.313 \\\\\n", - "\\textbf{exp3:C(ind2)[T.20]} & 0.9769 & 0.696 & 1.404 & 0.160 & -0.387 & 2.341 \\\\\n", - "\\textbf{exp3:C(ind2)[T.21]} & 1.4415 & 0.700 & 2.060 & 0.039 & 0.070 & 2.813 \\\\\n", - "\\textbf{exp3:C(ind2)[T.22]} & 0.9688 & 0.683 & 1.419 & 0.156 & -0.370 & 2.307 \\\\\n", - "\\textbf{exp4} & 0.1429 & 0.091 & 1.575 & 0.115 & -0.035 & 0.321 \\\\\n", - "\\textbf{exp4:C(occ2)[T.2]} & 0.0176 & 0.029 & 0.610 & 0.542 & -0.039 & 0.074 \\\\\n", - "\\textbf{exp4:C(occ2)[T.3]} & 0.0303 & 0.038 & 0.805 & 0.421 & -0.044 & 0.104 \\\\\n", - "\\textbf{exp4:C(occ2)[T.4]} & 0.0584 & 0.046 & 1.276 & 0.202 & -0.031 & 0.148 \\\\\n", - "\\textbf{exp4:C(occ2)[T.5]} & -0.0515 & 0.055 & -0.938 & 0.349 & -0.159 & 0.056 \\\\\n", - "\\textbf{exp4:C(occ2)[T.6]} & -0.0170 & 0.044 & -0.386 & 0.699 & -0.103 & 0.069 \\\\\n", - "\\textbf{exp4:C(occ2)[T.7]} & 0.1905 & 0.056 & 3.410 & 0.001 & 0.081 & 0.300 \\\\\n", - "\\textbf{exp4:C(occ2)[T.8]} & 0.0197 & 0.038 & 0.518 & 0.604 & -0.055 & 0.094 \\\\\n", - "\\textbf{exp4:C(occ2)[T.9]} & 0.0190 & 0.042 & 0.451 & 0.652 & -0.064 & 0.102 \\\\\n", - "\\textbf{exp4:C(occ2)[T.10]} & -0.0333 & 0.034 & -0.984 & 0.325 & -0.100 & 0.033 \\\\\n", - "\\textbf{exp4:C(occ2)[T.11]} & -0.0466 & 0.048 & -0.973 & 0.331 & -0.141 & 0.047 \\\\\n", - "\\textbf{exp4:C(occ2)[T.12]} & 0.0110 & 0.047 & 0.234 & 0.815 & -0.081 & 0.103 \\\\\n", - "\\textbf{exp4:C(occ2)[T.13]} & -0.0137 & 0.036 & -0.381 & 0.703 & -0.084 & 0.057 \\\\\n", - "\\textbf{exp4:C(occ2)[T.14]} & 0.0056 & 0.040 & 0.139 & 0.890 & -0.073 & 0.084 \\\\\n", - "\\textbf{exp4:C(occ2)[T.15]} & -0.0327 & 0.046 & -0.708 & 0.479 & -0.123 & 0.058 \\\\\n", - "\\textbf{exp4:C(occ2)[T.16]} & -0.0090 & 0.028 & -0.325 & 0.745 & -0.063 & 0.045 \\\\\n", - "\\textbf{exp4:C(occ2)[T.17]} & -0.0257 & 0.024 & -1.073 & 0.283 & -0.073 & 0.021 \\\\\n", - "\\textbf{exp4:C(occ2)[T.18]} & -0.2121 & 0.220 & -0.963 & 0.336 & -0.644 & 0.220 \\\\\n", - "\\textbf{exp4:C(occ2)[T.19]} & -0.0169 & 0.051 & -0.330 & 0.741 & -0.118 & 0.084 \\\\\n", - "\\textbf{exp4:C(occ2)[T.20]} & -0.0296 & 0.032 & -0.916 & 0.360 & -0.093 & 0.034 \\\\\n", - "\\textbf{exp4:C(occ2)[T.21]} & -0.0525 & 0.032 & -1.654 & 0.098 & -0.115 & 0.010 \\\\\n", - "\\textbf{exp4:C(occ2)[T.22]} & -0.0351 & 0.036 & -0.972 & 0.331 & -0.106 & 0.036 \\\\\n", - "\\textbf{exp4:C(ind2)[T.3]} & -0.3852 & 0.133 & -2.898 & 0.004 & -0.646 & -0.125 \\\\\n", - "\\textbf{exp4:C(ind2)[T.4]} & -0.1209 & 0.090 & -1.344 & 0.179 & -0.297 & 0.055 \\\\\n", - "\\textbf{exp4:C(ind2)[T.5]} & -0.1441 & 0.090 & -1.605 & 0.109 & -0.320 & 0.032 \\\\\n", - "\\textbf{exp4:C(ind2)[T.6]} & -0.1526 & 0.089 & -1.710 & 0.087 & -0.328 & 0.022 \\\\\n", - "\\textbf{exp4:C(ind2)[T.7]} & -0.1002 & 0.112 & -0.895 & 0.371 & -0.320 & 0.119 \\\\\n", - "\\textbf{exp4:C(ind2)[T.8]} & -0.1610 & 0.098 & -1.643 & 0.100 & -0.353 & 0.031 \\\\\n", - "\\textbf{exp4:C(ind2)[T.9]} & -0.1178 & 0.088 & -1.342 & 0.180 & -0.290 & 0.054 \\\\\n", - "\\textbf{exp4:C(ind2)[T.10]} & -0.1483 & 0.092 & -1.615 & 0.106 & -0.328 & 0.032 \\\\\n", - "\\textbf{exp4:C(ind2)[T.11]} & -0.2323 & 0.094 & -2.459 & 0.014 & -0.417 & -0.047 \\\\\n", - "\\textbf{exp4:C(ind2)[T.12]} & -0.1873 & 0.090 & -2.081 & 0.037 & -0.364 & -0.011 \\\\\n", - "\\textbf{exp4:C(ind2)[T.13]} & -0.2156 & 0.095 & -2.279 & 0.023 & -0.401 & -0.030 \\\\\n", - "\\textbf{exp4:C(ind2)[T.14]} & -0.1484 & 0.088 & -1.676 & 0.094 & -0.322 & 0.025 \\\\\n", - "\\textbf{exp4:C(ind2)[T.15]} & -0.0532 & 0.131 & -0.405 & 0.685 & -0.311 & 0.204 \\\\\n", - "\\textbf{exp4:C(ind2)[T.16]} & -0.1044 & 0.092 & -1.140 & 0.254 & -0.284 & 0.075 \\\\\n", - "\\textbf{exp4:C(ind2)[T.17]} & -0.1427 & 0.090 & -1.587 & 0.113 & -0.319 & 0.034 \\\\\n", - "\\textbf{exp4:C(ind2)[T.18]} & -0.1546 & 0.089 & -1.745 & 0.081 & -0.328 & 0.019 \\\\\n", - "\\textbf{exp4:C(ind2)[T.19]} & -0.1270 & 0.095 & -1.338 & 0.181 & -0.313 & 0.059 \\\\\n", - "\\textbf{exp4:C(ind2)[T.20]} & -0.1469 & 0.091 & -1.612 & 0.107 & -0.325 & 0.032 \\\\\n", - "\\textbf{exp4:C(ind2)[T.21]} & -0.2033 & 0.092 & -2.207 & 0.027 & -0.384 & -0.023 \\\\\n", - "\\textbf{exp4:C(ind2)[T.22]} & -0.1481 & 0.090 & -1.649 & 0.099 & -0.324 & 0.028 \\\\\n", - "\\textbf{shs} & -0.1233 & 0.907 & -0.136 & 0.892 & -1.901 & 1.654 \\\\\n", - "\\textbf{hsg} & -0.5289 & 0.198 & -2.675 & 0.008 & -0.917 & -0.141 \\\\\n", - "\\textbf{scl} & -0.2921 & 0.126 & -2.318 & 0.021 & -0.539 & -0.045 \\\\\n", - "\\textbf{clg} & -0.0412 & 0.070 & -0.585 & 0.559 & -0.179 & 0.097 \\\\\n", - "\\textbf{mw} & 0.1107 & 0.081 & 1.359 & 0.174 & -0.049 & 0.270 \\\\\n", - "\\textbf{so} & 0.0224 & 0.074 & 0.301 & 0.763 & -0.123 & 0.168 \\\\\n", - "\\textbf{we} & -0.0216 & 0.084 & -0.256 & 0.798 & -0.187 & 0.143 \\\\\n", - "\\textbf{exp1:shs} & -0.1920 & 0.196 & -0.982 & 0.326 & -0.575 & 0.191 \\\\\n", - "\\textbf{exp1:hsg} & -0.0173 & 0.057 & -0.303 & 0.762 & -0.130 & 0.095 \\\\\n", - "\\textbf{exp1:scl} & -0.0665 & 0.043 & -1.532 & 0.126 & -0.151 & 0.019 \\\\\n", - "\\textbf{exp1:clg} & -0.0550 & 0.031 & -1.774 & 0.076 & -0.116 & 0.006 \\\\\n", - "\\textbf{exp1:mw} & -0.0280 & 0.030 & -0.944 & 0.345 & -0.086 & 0.030 \\\\\n", - "\\textbf{exp1:so} & -0.0100 & 0.027 & -0.374 & 0.709 & -0.062 & 0.042 \\\\\n", - "\\textbf{exp1:we} & 0.0063 & 0.030 & 0.209 & 0.834 & -0.053 & 0.065 \\\\\n", - "\\textbf{exp2:shs} & 1.9005 & 1.450 & 1.310 & 0.190 & -0.943 & 4.744 \\\\\n", - "\\textbf{exp2:hsg} & 0.1172 & 0.551 & 0.213 & 0.832 & -0.963 & 1.197 \\\\\n", - "\\textbf{exp2:scl} & 0.6218 & 0.463 & 1.343 & 0.179 & -0.286 & 1.529 \\\\\n", - "\\textbf{exp2:clg} & 0.4097 & 0.380 & 1.077 & 0.281 & -0.336 & 1.155 \\\\\n", - "\\textbf{exp2:mw} & 0.2006 & 0.317 & 0.632 & 0.527 & -0.421 & 0.823 \\\\\n", - "\\textbf{exp2:so} & 0.0544 & 0.282 & 0.193 & 0.847 & -0.498 & 0.606 \\\\\n", - "\\textbf{exp2:we} & 0.0013 & 0.321 & 0.004 & 0.997 & -0.628 & 0.630 \\\\\n", - "\\textbf{exp3:shs} & -0.6721 & 0.443 & -1.518 & 0.129 & -1.540 & 0.196 \\\\\n", - "\\textbf{exp3:hsg} & -0.0180 & 0.208 & -0.086 & 0.931 & -0.426 & 0.390 \\\\\n", - "\\textbf{exp3:scl} & -0.1998 & 0.186 & -1.077 & 0.282 & -0.563 & 0.164 \\\\\n", - "\\textbf{exp3:clg} & -0.1025 & 0.164 & -0.624 & 0.533 & -0.425 & 0.220 \\\\\n", - "\\textbf{exp3:mw} & -0.0626 & 0.124 & -0.504 & 0.614 & -0.306 & 0.181 \\\\\n", - "\\textbf{exp3:so} & -0.0116 & 0.108 & -0.107 & 0.915 & -0.224 & 0.201 \\\\\n", - "\\textbf{exp3:we} & -0.0125 & 0.125 & -0.100 & 0.921 & -0.258 & 0.233 \\\\\n", - "\\textbf{exp4:shs} & 0.0777 & 0.048 & 1.635 & 0.102 & -0.015 & 0.171 \\\\\n", - "\\textbf{exp4:hsg} & 0.0005 & 0.027 & 0.018 & 0.985 & -0.052 & 0.053 \\\\\n", - "\\textbf{exp4:scl} & 0.0211 & 0.025 & 0.859 & 0.390 & -0.027 & 0.069 \\\\\n", - "\\textbf{exp4:clg} & 0.0079 & 0.023 & 0.346 & 0.729 & -0.037 & 0.052 \\\\\n", - "\\textbf{exp4:mw} & 0.0062 & 0.016 & 0.393 & 0.694 & -0.025 & 0.037 \\\\\n", - "\\textbf{exp4:so} & 0.0003 & 0.014 & 0.023 & 0.982 & -0.026 & 0.027 \\\\\n", - "\\textbf{exp4:we} & 0.0018 & 0.016 & 0.111 & 0.912 & -0.030 & 0.033 \\\\\n", - "\\bottomrule\n", - "\\end{tabular}\n", - "\\begin{tabular}{lclc}\n", - "\\textbf{Omnibus:} & 395.012 & \\textbf{ Durbin-Watson: } & 1.898 \\\\\n", - "\\textbf{Prob(Omnibus):} & 0.000 & \\textbf{ Jarque-Bera (JB): } & 1529.250 \\\\\n", - "\\textbf{Skew:} & 0.303 & \\textbf{ Prob(JB): } & 0.00 \\\\\n", - "\\textbf{Kurtosis:} & 5.600 & \\textbf{ Cond. No. } & 9.99e+04 \\\\\n", - "\\bottomrule\n", - "\\end{tabular}\n", - "%\\caption{OLS Regression Results}\n", - "\\end{center}\n", - "\n", - "Notes: \\newline\n", - " [1] Standard Errors assume that the covariance matrix of the errors is correctly specified. \\newline\n", - " [2] The condition number is large, 9.99e+04. This might indicate that there are \\newline\n", - " strong multicollinearity or other numerical problems." - ], - "text/plain": [ - "\n", - "\"\"\"\n", - " OLS Regression Results \n", - "==============================================================================\n", - "Dep. Variable: lwage R-squared: 0.351\n", - "Model: OLS Adj. R-squared: 0.319\n", - "Method: Least Squares F-statistic: 10.83\n", - "Date: Fri, 28 Jun 2024 Prob (F-statistic): 2.69e-305\n", - "Time: 06:55:34 Log-Likelihood: -3301.9\n", - "No. Observations: 5150 AIC: 7096.\n", - "Df Residuals: 4904 BIC: 8706.\n", - "Df Model: 245 \n", - "Covariance Type: nonrobust \n", - "======================================================================================\n", - " coef std err t P>|t| [0.025 0.975]\n", - "--------------------------------------------------------------------------------------\n", - "Intercept 3.8603 0.429 9.006 0.000 3.020 4.701\n", - "C(occ2)[T.2] 0.1613 0.130 1.244 0.214 -0.093 0.416\n", - "C(occ2)[T.3] 0.2102 0.169 1.246 0.213 -0.121 0.541\n", - "C(occ2)[T.4] 0.0709 0.184 0.386 0.700 -0.289 0.431\n", - "C(occ2)[T.5] -0.3960 0.189 -2.100 0.036 -0.766 -0.026\n", - "C(occ2)[T.6] -0.2311 0.187 -1.236 0.217 -0.598 0.135\n", - "C(occ2)[T.7] 0.3147 0.194 1.621 0.105 -0.066 0.695\n", - "C(occ2)[T.8] -0.1875 0.169 -1.108 0.268 -0.519 0.144\n", - "C(occ2)[T.9] -0.3390 0.167 -2.027 0.043 -0.667 -0.011\n", - "C(occ2)[T.10] 0.0210 0.156 0.134 0.893 -0.286 0.328\n", - "C(occ2)[T.11] -0.6424 0.309 -2.078 0.038 -1.248 -0.036\n", - "C(occ2)[T.12] -0.0675 0.252 -0.268 0.789 -0.562 0.427\n", - "C(occ2)[T.13] -0.2330 0.232 -1.006 0.314 -0.687 0.221\n", - "C(occ2)[T.14] 0.2562 0.323 0.794 0.427 -0.376 0.889\n", - "C(occ2)[T.15] -0.1939 0.260 -0.747 0.455 -0.703 0.315\n", - "C(occ2)[T.16] -0.0551 0.147 -0.375 0.708 -0.343 0.233\n", - "C(occ2)[T.17] -0.4156 0.136 -3.053 0.002 -0.682 -0.149\n", - "C(occ2)[T.18] -0.4822 1.044 -0.462 0.644 -2.530 1.565\n", - "C(occ2)[T.19] -0.2579 0.333 -0.776 0.438 -0.910 0.394\n", - "C(occ2)[T.20] -0.3010 0.234 -1.286 0.199 -0.760 0.158\n", - "C(occ2)[T.21] -0.4272 0.221 -1.936 0.053 -0.860 0.005\n", - "C(occ2)[T.22] -0.8695 0.298 -2.922 0.003 -1.453 -0.286\n", - "C(ind2)[T.3] -1.2474 0.645 -1.932 0.053 -2.513 0.018\n", - "C(ind2)[T.4] -0.0948 0.464 -0.205 0.838 -1.004 0.814\n", - "C(ind2)[T.5] -0.5294 0.435 -1.218 0.223 -1.381 0.323\n", - "C(ind2)[T.6] -0.6222 0.435 -1.431 0.152 -1.474 0.230\n", - "C(ind2)[T.7] -0.5047 0.502 -1.005 0.315 -1.490 0.480\n", - "C(ind2)[T.8] -0.7295 0.467 -1.561 0.119 -1.646 0.187\n", - "C(ind2)[T.9] -0.8025 0.425 -1.887 0.059 -1.636 0.031\n", - "C(ind2)[T.10] -0.5806 0.481 -1.207 0.227 -1.523 0.362\n", - "C(ind2)[T.11] -0.9852 0.448 -2.198 0.028 -1.864 -0.107\n", - "C(ind2)[T.12] -0.7376 0.424 -1.738 0.082 -1.569 0.094\n", - "C(ind2)[T.13] -1.0183 0.483 -2.110 0.035 -1.965 -0.072\n", - "C(ind2)[T.14] -0.5860 0.416 -1.409 0.159 -1.401 0.229\n", - "C(ind2)[T.15] -0.3801 0.591 -0.643 0.520 -1.538 0.778\n", - "C(ind2)[T.16] -0.5704 0.439 -1.300 0.194 -1.430 0.290\n", - "C(ind2)[T.17] -0.8202 0.426 -1.925 0.054 -1.655 0.015\n", - "C(ind2)[T.18] -0.7614 0.424 -1.796 0.072 -1.592 0.070\n", - "C(ind2)[T.19] -0.8813 0.457 -1.930 0.054 -1.776 0.014\n", - "C(ind2)[T.20] -0.9099 0.448 -2.029 0.042 -1.789 -0.031\n", - "C(ind2)[T.21] -0.7587 0.441 -1.722 0.085 -1.622 0.105\n", - "C(ind2)[T.22] -0.4041 0.433 -0.933 0.351 -1.253 0.445\n", - "sex -0.0696 0.015 -4.570 0.000 -0.099 -0.040\n", - "exp1 -0.0677 0.152 -0.446 0.656 -0.366 0.230\n", - "exp1:C(occ2)[T.2] -0.0736 0.050 -1.469 0.142 -0.172 0.025\n", - "exp1:C(occ2)[T.3] -0.0715 0.064 -1.121 0.262 -0.197 0.054\n", - "exp1:C(occ2)[T.4] -0.0724 0.075 -0.968 0.333 -0.219 0.074\n", - "exp1:C(occ2)[T.5] 0.0947 0.079 1.192 0.233 -0.061 0.250\n", - "exp1:C(occ2)[T.6] -0.0349 0.071 -0.490 0.624 -0.175 0.105\n", - "exp1:C(occ2)[T.7] -0.2279 0.078 -2.904 0.004 -0.382 -0.074\n", - "exp1:C(occ2)[T.8] -0.0727 0.065 -1.126 0.260 -0.199 0.054\n", - "exp1:C(occ2)[T.9] 0.0274 0.067 0.409 0.682 -0.104 0.159\n", - "exp1:C(occ2)[T.10] 0.0076 0.058 0.130 0.897 -0.106 0.122\n", - "exp1:C(occ2)[T.11] 0.1014 0.101 1.009 0.313 -0.096 0.298\n", - "exp1:C(occ2)[T.12] -0.0863 0.087 -0.986 0.324 -0.258 0.085\n", - "exp1:C(occ2)[T.13] 0.0067 0.076 0.088 0.930 -0.143 0.156\n", - "exp1:C(occ2)[T.14] -0.1369 0.097 -1.405 0.160 -0.328 0.054\n", - "exp1:C(occ2)[T.15] -0.0400 0.090 -0.445 0.656 -0.216 0.136\n", - "exp1:C(occ2)[T.16] -0.0539 0.052 -1.035 0.301 -0.156 0.048\n", - "exp1:C(occ2)[T.17] 0.0147 0.047 0.315 0.753 -0.077 0.106\n", - "exp1:C(occ2)[T.18] 0.1074 0.472 0.228 0.820 -0.818 1.032\n", - "exp1:C(occ2)[T.19] 0.0047 0.106 0.044 0.965 -0.203 0.213\n", - "exp1:C(occ2)[T.20] 0.0243 0.074 0.327 0.744 -0.121 0.170\n", - "exp1:C(occ2)[T.21] 0.0792 0.070 1.136 0.256 -0.057 0.216\n", - "exp1:C(occ2)[T.22] 0.1093 0.088 1.241 0.215 -0.063 0.282\n", - "exp1:C(ind2)[T.3] 0.4759 0.223 2.136 0.033 0.039 0.913\n", - "exp1:C(ind2)[T.4] 0.0147 0.157 0.094 0.925 -0.293 0.323\n", - "exp1:C(ind2)[T.5] 0.1257 0.153 0.821 0.412 -0.175 0.426\n", - "exp1:C(ind2)[T.6] 0.1540 0.152 1.010 0.312 -0.145 0.453\n", - "exp1:C(ind2)[T.7] 0.1029 0.179 0.576 0.565 -0.247 0.453\n", - "exp1:C(ind2)[T.8] 0.2358 0.169 1.396 0.163 -0.095 0.567\n", - "exp1:C(ind2)[T.9] 0.1359 0.149 0.912 0.362 -0.156 0.428\n", - "exp1:C(ind2)[T.10] 0.1513 0.164 0.920 0.358 -0.171 0.474\n", - "exp1:C(ind2)[T.11] 0.3175 0.159 1.997 0.046 0.006 0.629\n", - "exp1:C(ind2)[T.12] 0.2591 0.151 1.715 0.086 -0.037 0.555\n", - "exp1:C(ind2)[T.13] 0.3396 0.167 2.035 0.042 0.012 0.667\n", - "exp1:C(ind2)[T.14] 0.1441 0.148 0.975 0.329 -0.146 0.434\n", - "exp1:C(ind2)[T.15] -0.0568 0.235 -0.242 0.809 -0.517 0.404\n", - "exp1:C(ind2)[T.16] 0.0847 0.155 0.546 0.585 -0.219 0.389\n", - "exp1:C(ind2)[T.17] 0.1729 0.151 1.142 0.253 -0.124 0.470\n", - "exp1:C(ind2)[T.18] 0.1565 0.149 1.048 0.295 -0.136 0.449\n", - "exp1:C(ind2)[T.19] 0.1516 0.162 0.935 0.350 -0.166 0.469\n", - "exp1:C(ind2)[T.20] 0.1327 0.157 0.847 0.397 -0.175 0.440\n", - "exp1:C(ind2)[T.21] 0.2191 0.156 1.409 0.159 -0.086 0.524\n", - "exp1:C(ind2)[T.22] 0.1146 0.152 0.752 0.452 -0.184 0.413\n", - "exp2 1.6363 1.691 0.968 0.333 -1.679 4.951\n", - "exp2:C(occ2)[T.2] 0.6632 0.552 1.201 0.230 -0.420 1.746\n", - "exp2:C(occ2)[T.3] 0.6415 0.710 0.903 0.366 -0.751 2.034\n", - "exp2:C(occ2)[T.4] 0.9748 0.866 1.126 0.260 -0.722 2.672\n", - "exp2:C(occ2)[T.5] -0.9779 0.974 -1.004 0.315 -2.887 0.931\n", - "exp2:C(occ2)[T.6] 0.1051 0.800 0.131 0.896 -1.464 1.674\n", - "exp2:C(occ2)[T.7] 3.1407 0.939 3.345 0.001 1.300 4.981\n", - "exp2:C(occ2)[T.8] 0.6711 0.719 0.933 0.351 -0.739 2.081\n", - "exp2:C(occ2)[T.9] 0.0232 0.763 0.030 0.976 -1.472 1.519\n", - "exp2:C(occ2)[T.10] -0.2692 0.641 -0.420 0.674 -1.525 0.986\n", - "exp2:C(occ2)[T.11] -1.0817 1.006 -1.075 0.282 -3.053 0.890\n", - "exp2:C(occ2)[T.12] 0.8324 0.934 0.891 0.373 -0.999 2.664\n", - "exp2:C(occ2)[T.13] -0.2210 0.773 -0.286 0.775 -1.736 1.294\n", - "exp2:C(occ2)[T.14] 0.7511 0.927 0.810 0.418 -1.067 2.569\n", - "exp2:C(occ2)[T.15] -0.0327 0.941 -0.035 0.972 -1.877 1.812\n", - "exp2:C(occ2)[T.16] 0.3636 0.551 0.660 0.509 -0.717 1.444\n", - "exp2:C(occ2)[T.17] -0.2659 0.486 -0.547 0.584 -1.219 0.687\n", - "exp2:C(occ2)[T.18] -2.5609 5.170 -0.495 0.620 -12.697 7.575\n", - "exp2:C(occ2)[T.19] -0.1292 1.062 -0.122 0.903 -2.211 1.952\n", - "exp2:C(occ2)[T.20] -0.3323 0.723 -0.460 0.646 -1.750 1.085\n", - "exp2:C(occ2)[T.21] -0.9100 0.685 -1.328 0.184 -2.254 0.434\n", - "exp2:C(occ2)[T.22] -0.8551 0.828 -1.033 0.302 -2.478 0.768\n", - "exp2:C(ind2)[T.3] -5.9369 2.407 -2.467 0.014 -10.655 -1.219\n", - "exp2:C(ind2)[T.4] -1.1053 1.710 -0.646 0.518 -4.458 2.247\n", - "exp2:C(ind2)[T.5] -2.0149 1.692 -1.191 0.234 -5.332 1.302\n", - "exp2:C(ind2)[T.6] -2.2278 1.682 -1.325 0.185 -5.525 1.069\n", - "exp2:C(ind2)[T.7] -1.4648 2.014 -0.727 0.467 -5.413 2.483\n", - "exp2:C(ind2)[T.8] -2.9480 1.860 -1.585 0.113 -6.594 0.698\n", - "exp2:C(ind2)[T.9] -1.7796 1.647 -1.080 0.280 -5.009 1.449\n", - "exp2:C(ind2)[T.10] -2.1973 1.774 -1.239 0.216 -5.675 1.280\n", - "exp2:C(ind2)[T.11] -3.8777 1.764 -2.199 0.028 -7.335 -0.420\n", - "exp2:C(ind2)[T.12] -3.1690 1.682 -1.884 0.060 -6.466 0.128\n", - "exp2:C(ind2)[T.13] -3.9652 1.813 -2.187 0.029 -7.520 -0.411\n", - "exp2:C(ind2)[T.14] -2.0783 1.649 -1.260 0.208 -5.311 1.155\n", - "exp2:C(ind2)[T.15] 0.1912 2.608 0.073 0.942 -4.921 5.303\n", - "exp2:C(ind2)[T.16] -1.3266 1.719 -0.772 0.440 -4.696 2.043\n", - "exp2:C(ind2)[T.17] -2.2003 1.684 -1.307 0.191 -5.501 1.101\n", - "exp2:C(ind2)[T.18] -2.2006 1.657 -1.328 0.184 -5.448 1.047\n", - "exp2:C(ind2)[T.19] -1.9309 1.788 -1.080 0.280 -5.435 1.574\n", - "exp2:C(ind2)[T.20] -1.9467 1.724 -1.129 0.259 -5.327 1.434\n", - "exp2:C(ind2)[T.21] -3.1127 1.724 -1.806 0.071 -6.492 0.267\n", - "exp2:C(ind2)[T.22] -1.8578 1.685 -1.103 0.270 -5.161 1.445\n", - "exp3 -0.9155 0.688 -1.331 0.183 -2.264 0.433\n", - "exp3:C(occ2)[T.2] -0.2039 0.221 -0.922 0.356 -0.637 0.230\n", - "exp3:C(occ2)[T.3] -0.2370 0.287 -0.826 0.409 -0.800 0.326\n", - "exp3:C(occ2)[T.4] -0.4367 0.352 -1.241 0.215 -1.127 0.253\n", - "exp3:C(occ2)[T.5] 0.3885 0.412 0.943 0.346 -0.419 1.196\n", - "exp3:C(occ2)[T.6] 0.0485 0.329 0.147 0.883 -0.597 0.694\n", - "exp3:C(occ2)[T.7] -1.3949 0.405 -3.444 0.001 -2.189 -0.601\n", - "exp3:C(occ2)[T.8] -0.2054 0.290 -0.709 0.478 -0.773 0.362\n", - "exp3:C(occ2)[T.9] -0.0910 0.314 -0.289 0.772 -0.707 0.525\n", - "exp3:C(occ2)[T.10] 0.1855 0.258 0.720 0.471 -0.319 0.690\n", - "exp3:C(occ2)[T.11] 0.3932 0.382 1.030 0.303 -0.355 1.142\n", - "exp3:C(occ2)[T.12] -0.2203 0.366 -0.602 0.547 -0.938 0.497\n", - "exp3:C(occ2)[T.13] 0.0950 0.290 0.327 0.744 -0.474 0.664\n", - "exp3:C(occ2)[T.14] -0.1444 0.334 -0.432 0.666 -0.800 0.511\n", - "exp3:C(occ2)[T.15] 0.1477 0.365 0.405 0.685 -0.567 0.862\n", - "exp3:C(occ2)[T.16] -0.0379 0.215 -0.176 0.860 -0.460 0.384\n", - "exp3:C(occ2)[T.17] 0.1510 0.188 0.804 0.421 -0.217 0.519\n", - "exp3:C(occ2)[T.18] 1.4084 1.885 0.747 0.455 -2.287 5.104\n", - "exp3:C(occ2)[T.19] 0.0923 0.404 0.228 0.819 -0.700 0.885\n", - "exp3:C(occ2)[T.20] 0.1807 0.265 0.681 0.496 -0.339 0.701\n", - "exp3:C(occ2)[T.21] 0.3779 0.255 1.480 0.139 -0.123 0.878\n", - "exp3:C(occ2)[T.22] 0.2855 0.298 0.957 0.339 -0.300 0.871\n", - "exp3:C(ind2)[T.3] 2.6666 0.981 2.719 0.007 0.744 4.589\n", - "exp3:C(ind2)[T.4] 0.7298 0.688 1.061 0.289 -0.619 2.079\n", - "exp3:C(ind2)[T.5] 0.9942 0.684 1.453 0.146 -0.347 2.336\n", - "exp3:C(ind2)[T.6] 1.0641 0.680 1.565 0.118 -0.269 2.397\n", - "exp3:C(ind2)[T.7] 0.7089 0.834 0.850 0.395 -0.926 2.344\n", - "exp3:C(ind2)[T.8] 1.2341 0.748 1.649 0.099 -0.233 2.701\n", - "exp3:C(ind2)[T.9] 0.8287 0.668 1.241 0.215 -0.480 2.138\n", - "exp3:C(ind2)[T.10] 1.0448 0.707 1.479 0.139 -0.341 2.430\n", - "exp3:C(ind2)[T.11] 1.6878 0.716 2.356 0.018 0.284 3.092\n", - "exp3:C(ind2)[T.12] 1.3734 0.684 2.009 0.045 0.033 2.714\n", - "exp3:C(ind2)[T.13] 1.6377 0.726 2.256 0.024 0.215 3.061\n", - "exp3:C(ind2)[T.14] 1.0163 0.671 1.514 0.130 -0.300 2.333\n", - "exp3:C(ind2)[T.15] 0.1879 1.030 0.182 0.855 -1.831 2.207\n", - "exp3:C(ind2)[T.16] 0.6890 0.697 0.989 0.323 -0.677 2.055\n", - "exp3:C(ind2)[T.17] 1.0086 0.684 1.475 0.140 -0.332 2.349\n", - "exp3:C(ind2)[T.18] 1.0606 0.673 1.577 0.115 -0.258 2.379\n", - "exp3:C(ind2)[T.19] 0.8960 0.723 1.240 0.215 -0.521 2.313\n", - "exp3:C(ind2)[T.20] 0.9769 0.696 1.404 0.160 -0.387 2.341\n", - "exp3:C(ind2)[T.21] 1.4415 0.700 2.060 0.039 0.070 2.813\n", - "exp3:C(ind2)[T.22] 0.9688 0.683 1.419 0.156 -0.370 2.307\n", - "exp4 0.1429 0.091 1.575 0.115 -0.035 0.321\n", - "exp4:C(occ2)[T.2] 0.0176 0.029 0.610 0.542 -0.039 0.074\n", - "exp4:C(occ2)[T.3] 0.0303 0.038 0.805 0.421 -0.044 0.104\n", - "exp4:C(occ2)[T.4] 0.0584 0.046 1.276 0.202 -0.031 0.148\n", - "exp4:C(occ2)[T.5] -0.0515 0.055 -0.938 0.349 -0.159 0.056\n", - "exp4:C(occ2)[T.6] -0.0170 0.044 -0.386 0.699 -0.103 0.069\n", - "exp4:C(occ2)[T.7] 0.1905 0.056 3.410 0.001 0.081 0.300\n", - "exp4:C(occ2)[T.8] 0.0197 0.038 0.518 0.604 -0.055 0.094\n", - "exp4:C(occ2)[T.9] 0.0190 0.042 0.451 0.652 -0.064 0.102\n", - "exp4:C(occ2)[T.10] -0.0333 0.034 -0.984 0.325 -0.100 0.033\n", - "exp4:C(occ2)[T.11] -0.0466 0.048 -0.973 0.331 -0.141 0.047\n", - "exp4:C(occ2)[T.12] 0.0110 0.047 0.234 0.815 -0.081 0.103\n", - "exp4:C(occ2)[T.13] -0.0137 0.036 -0.381 0.703 -0.084 0.057\n", - "exp4:C(occ2)[T.14] 0.0056 0.040 0.139 0.890 -0.073 0.084\n", - "exp4:C(occ2)[T.15] -0.0327 0.046 -0.708 0.479 -0.123 0.058\n", - "exp4:C(occ2)[T.16] -0.0090 0.028 -0.325 0.745 -0.063 0.045\n", - "exp4:C(occ2)[T.17] -0.0257 0.024 -1.073 0.283 -0.073 0.021\n", - "exp4:C(occ2)[T.18] -0.2121 0.220 -0.963 0.336 -0.644 0.220\n", - "exp4:C(occ2)[T.19] -0.0169 0.051 -0.330 0.741 -0.118 0.084\n", - "exp4:C(occ2)[T.20] -0.0296 0.032 -0.916 0.360 -0.093 0.034\n", - "exp4:C(occ2)[T.21] -0.0525 0.032 -1.654 0.098 -0.115 0.010\n", - "exp4:C(occ2)[T.22] -0.0351 0.036 -0.972 0.331 -0.106 0.036\n", - "exp4:C(ind2)[T.3] -0.3852 0.133 -2.898 0.004 -0.646 -0.125\n", - "exp4:C(ind2)[T.4] -0.1209 0.090 -1.344 0.179 -0.297 0.055\n", - "exp4:C(ind2)[T.5] -0.1441 0.090 -1.605 0.109 -0.320 0.032\n", - "exp4:C(ind2)[T.6] -0.1526 0.089 -1.710 0.087 -0.328 0.022\n", - "exp4:C(ind2)[T.7] -0.1002 0.112 -0.895 0.371 -0.320 0.119\n", - "exp4:C(ind2)[T.8] -0.1610 0.098 -1.643 0.100 -0.353 0.031\n", - "exp4:C(ind2)[T.9] -0.1178 0.088 -1.342 0.180 -0.290 0.054\n", - "exp4:C(ind2)[T.10] -0.1483 0.092 -1.615 0.106 -0.328 0.032\n", - "exp4:C(ind2)[T.11] -0.2323 0.094 -2.459 0.014 -0.417 -0.047\n", - "exp4:C(ind2)[T.12] -0.1873 0.090 -2.081 0.037 -0.364 -0.011\n", - "exp4:C(ind2)[T.13] -0.2156 0.095 -2.279 0.023 -0.401 -0.030\n", - "exp4:C(ind2)[T.14] -0.1484 0.088 -1.676 0.094 -0.322 0.025\n", - "exp4:C(ind2)[T.15] -0.0532 0.131 -0.405 0.685 -0.311 0.204\n", - "exp4:C(ind2)[T.16] -0.1044 0.092 -1.140 0.254 -0.284 0.075\n", - "exp4:C(ind2)[T.17] -0.1427 0.090 -1.587 0.113 -0.319 0.034\n", - "exp4:C(ind2)[T.18] -0.1546 0.089 -1.745 0.081 -0.328 0.019\n", - "exp4:C(ind2)[T.19] -0.1270 0.095 -1.338 0.181 -0.313 0.059\n", - "exp4:C(ind2)[T.20] -0.1469 0.091 -1.612 0.107 -0.325 0.032\n", - "exp4:C(ind2)[T.21] -0.2033 0.092 -2.207 0.027 -0.384 -0.023\n", - "exp4:C(ind2)[T.22] -0.1481 0.090 -1.649 0.099 -0.324 0.028\n", - "shs -0.1233 0.907 -0.136 0.892 -1.901 1.654\n", - "hsg -0.5289 0.198 -2.675 0.008 -0.917 -0.141\n", - "scl -0.2921 0.126 -2.318 0.021 -0.539 -0.045\n", - "clg -0.0412 0.070 -0.585 0.559 -0.179 0.097\n", - "mw 0.1107 0.081 1.359 0.174 -0.049 0.270\n", - "so 0.0224 0.074 0.301 0.763 -0.123 0.168\n", - "we -0.0216 0.084 -0.256 0.798 -0.187 0.143\n", - "exp1:shs -0.1920 0.196 -0.982 0.326 -0.575 0.191\n", - "exp1:hsg -0.0173 0.057 -0.303 0.762 -0.130 0.095\n", - "exp1:scl -0.0665 0.043 -1.532 0.126 -0.151 0.019\n", - "exp1:clg -0.0550 0.031 -1.774 0.076 -0.116 0.006\n", - "exp1:mw -0.0280 0.030 -0.944 0.345 -0.086 0.030\n", - "exp1:so -0.0100 0.027 -0.374 0.709 -0.062 0.042\n", - "exp1:we 0.0063 0.030 0.209 0.834 -0.053 0.065\n", - "exp2:shs 1.9005 1.450 1.310 0.190 -0.943 4.744\n", - "exp2:hsg 0.1172 0.551 0.213 0.832 -0.963 1.197\n", - "exp2:scl 0.6218 0.463 1.343 0.179 -0.286 1.529\n", - "exp2:clg 0.4097 0.380 1.077 0.281 -0.336 1.155\n", - "exp2:mw 0.2006 0.317 0.632 0.527 -0.421 0.823\n", - "exp2:so 0.0544 0.282 0.193 0.847 -0.498 0.606\n", - "exp2:we 0.0013 0.321 0.004 0.997 -0.628 0.630\n", - "exp3:shs -0.6721 0.443 -1.518 0.129 -1.540 0.196\n", - "exp3:hsg -0.0180 0.208 -0.086 0.931 -0.426 0.390\n", - "exp3:scl -0.1998 0.186 -1.077 0.282 -0.563 0.164\n", - "exp3:clg -0.1025 0.164 -0.624 0.533 -0.425 0.220\n", - "exp3:mw -0.0626 0.124 -0.504 0.614 -0.306 0.181\n", - "exp3:so -0.0116 0.108 -0.107 0.915 -0.224 0.201\n", - "exp3:we -0.0125 0.125 -0.100 0.921 -0.258 0.233\n", - "exp4:shs 0.0777 0.048 1.635 0.102 -0.015 0.171\n", - "exp4:hsg 0.0005 0.027 0.018 0.985 -0.052 0.053\n", - "exp4:scl 0.0211 0.025 0.859 0.390 -0.027 0.069\n", - "exp4:clg 0.0079 0.023 0.346 0.729 -0.037 0.052\n", - "exp4:mw 0.0062 0.016 0.393 0.694 -0.025 0.037\n", - "exp4:so 0.0003 0.014 0.023 0.982 -0.026 0.027\n", - "exp4:we 0.0018 0.016 0.111 0.912 -0.030 0.033\n", - "==============================================================================\n", - "Omnibus: 395.012 Durbin-Watson: 1.898\n", - "Prob(Omnibus): 0.000 Jarque-Bera (JB): 1529.250\n", - "Skew: 0.303 Prob(JB): 0.00\n", - "Kurtosis: 5.600 Cond. No. 9.99e+04\n", - "==============================================================================\n", - "\n", - "Notes:\n", - "[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.\n", - "[2] The condition number is large, 9.99e+04. This might indicate that there are\n", - "strong multicollinearity or other numerical problems.\n", - "\"\"\"" - ] - }, - "execution_count": 9, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "# Ols regression with controls\n", "\n", @@ -2285,7 +289,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -2293,15 +297,7 @@ "id": "JFtJiI1K9lcR", "outputId": "67414bcb-638d-4341-c8ed-8c8643a2f89e" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The estimated sex coefficient is -0.0696 and the corresponding robust standard error is 0.0157\n" - ] - } - ], + "outputs": [], "source": [ "print(f\"The estimated sex coefficient is {control_est:.4f} \"\n", " f\"and the corresponding robust standard error is {control_se:.4f}\")" @@ -2325,20 +321,9 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The marginal gap: -0.03834473367441449\n", - "The unexplained difference: -0.0695532032968443\n", - "The explained difference: 0.031208469622415955\n", - "The sum of these differences: -0.03834473367442834\n" - ] - } - ], + "outputs": [], "source": [ "flex_without_sex = \"lwage ~ (exp1+exp2+exp3+exp4)*(shs+hsg+scl+clg+C(occ2)+C(ind2)+mw+so+we)\"\n", "lm0 = smf.ols(flex_without_sex, data=df[df[\"sex\"] == 0])\n", @@ -2366,21 +351,9 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The marginal gap: -0.03834473367441449\n", - "The unexplained difference: -2.320207823343236\n", - "The difference explained by endowment: 0.0015954716372894157\n", - "The difference explained by coefficient: 2.280267569376531\n", - "The sum of these differences: -0.03834478232941585\n" - ] - } - ], + "outputs": [], "source": [ "u1, s1, v1 = np.linalg.svd(XX1)\n", "u0, s0, v0 = np.linalg.svd(XX0)\n", @@ -2412,7 +385,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -2420,16 +393,7 @@ "id": "dz9XPQTD9lcS", "outputId": "01281b4d-3a09-43f5-e16b-909cdcc87a6a" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Coefficient for D via partialling-out -0.06955320329684618\n", - "95% CI: [-0.09866859 -0.04043781]\n" - ] - } - ], + "outputs": [], "source": [ "# Partialling-Out using ols\n", "\n", @@ -2457,7 +421,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -2465,15 +429,7 @@ "id": "nLqitZ-jy-S-", "outputId": "6460d683-58c4-4f10-cc42-829b229ee06a" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The estimated sex coefficient is -0.0696 and the corresponding robust standard error is 0.0150\n" - ] - } - ], + "outputs": [], "source": [ "print(f\"The estimated sex coefficient is {partial_est:.4f} \"\n", " f\"and the corresponding robust standard error is {partial_se:.4f}\")" @@ -2519,7 +475,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -2527,32 +483,7 @@ "id": "OumtLIGBEoRk", "outputId": "04e30117-7e1f-4801-814f-28aee93f5a30" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Defaulting to user installation because normal site-packages is not writeable\n", - "Requirement already satisfied: multiprocess in c:\\programdata\\anaconda3\\lib\\site-packages (0.70.14)\n", - "Requirement already satisfied: dill>=0.3.6 in c:\\programdata\\anaconda3\\lib\\site-packages (from multiprocess) (0.3.6)\n", - "Defaulting to user installation because normal site-packages is not writeable\n", - "Requirement already satisfied: pyreadr in c:\\users\\vasilis\\appdata\\roaming\\python\\python311\\site-packages (0.5.0)\n", - "Requirement already satisfied: pandas>=1.2.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from pyreadr) (2.0.3)\n", - "Requirement already satisfied: python-dateutil>=2.8.2 in c:\\programdata\\anaconda3\\lib\\site-packages (from pandas>=1.2.0->pyreadr) (2.8.2)\n", - "Requirement already satisfied: pytz>=2020.1 in c:\\programdata\\anaconda3\\lib\\site-packages (from pandas>=1.2.0->pyreadr) (2023.3.post1)\n", - "Requirement already satisfied: tzdata>=2022.1 in c:\\programdata\\anaconda3\\lib\\site-packages (from pandas>=1.2.0->pyreadr) (2023.3)\n", - "Requirement already satisfied: numpy>=1.21.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from pandas>=1.2.0->pyreadr) (1.24.4)\n", - "Requirement already satisfied: six>=1.5 in c:\\programdata\\anaconda3\\lib\\site-packages (from python-dateutil>=2.8.2->pandas>=1.2.0->pyreadr) (1.16.0)\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "Cloning into 'hdmpy'...\n" - ] - } - ], + "outputs": [], "source": [ "!pip install multiprocess\n", "!pip install pyreadr\n", @@ -2561,7 +492,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": null, "metadata": { "id": "bTobyc3uFwnh" }, @@ -2573,7 +504,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": null, "metadata": { "id": "_MU12XLoFxDr" }, @@ -2603,7 +534,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -2611,16 +542,7 @@ "id": "N_ZBt97j9lcT", "outputId": "0df67cc6-9109-45ad-f0a8-5a7ae781dd63" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Coefficient for D via partialling-out using lasso -0.067475456401546\n", - "95% CI: [-0.09726648 -0.03768444]\n" - ] - } - ], + "outputs": [], "source": [ "# Partialling-Out using lasso\n", "\n", @@ -2661,7 +583,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -2670,75 +592,7 @@ "id": "UpbveucD9lcU", "outputId": "333fd562-6bfa-4878-e698-4dd4c7c4f7a7" }, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
ModelEstimateStd. Error
0Without controls-0.0383450.015908
1full reg-0.0695530.015699
2partial reg-0.0695530.015006
3partial reg via lasso-0.0674750.015441
\n", - "
" - ], - "text/plain": [ - " Model Estimate Std. Error\n", - "0 Without controls -0.038345 0.015908\n", - "1 full reg -0.069553 0.015699\n", - "2 partial reg -0.069553 0.015006\n", - "3 partial reg via lasso -0.067475 0.015441" - ] - }, - "execution_count": 29, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "table2 = pd.DataFrame()\n", "\n", @@ -2754,7 +608,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -2762,22 +616,7 @@ "id": "ZQnds_-i9lcU", "outputId": "828bf217-ebe3-4212-88e5-602831b491d2" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\\begin{tabular}{llrr}\n", - " & Model & Estimate & Std. Error \\\\\n", - "0 & Without controls & -0.038345 & 0.015908 \\\\\n", - "1 & full reg & -0.069553 & 0.015699 \\\\\n", - "2 & partial reg & -0.069553 & 0.015006 \\\\\n", - "3 & partial reg via lasso & -0.067475 & 0.015441 \\\\\n", - "\\end{tabular}\n", - "\n" - ] - } - ], + "outputs": [], "source": [ "# print to Latex\n", "print(table2.style.to_latex())" @@ -2807,7 +646,7 @@ }, { "cell_type": "code", - "execution_count": 31, + "execution_count": null, "metadata": { "id": "tHF782JMtbrt" }, @@ -2818,7 +657,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -2826,16 +665,7 @@ "id": "G7L90Bpa9lcV", "outputId": "33b884ff-df46-434d-ff9a-75680222d6f8" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Number of Extra-Flex Controls 979\n", - "Coefficient for OLS with extra flex controls -0.07355087637461062\n" - ] - } - ], + "outputs": [], "source": [ "# model\n", "extraflex = \"lwage ~ sex + (exp1+exp2+exp3+exp4+shs+hsg+scl+clg+C(occ2)+C(ind2)+mw+so+we)**2\"\n", @@ -2863,7 +693,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -2871,15 +701,7 @@ "id": "YhHr9Y7Cy-TD", "outputId": "cd5dd814-0132-4ed3-fd54-b2873a37e303" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Coefficient for D via partialling-out using lasso -0.067475456401546\n" - ] - } - ], + "outputs": [], "source": [ "# Partialling-Out using lasso\n", "\n", @@ -2916,7 +738,7 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -2925,68 +747,7 @@ "id": "EyElA7c49lcY", "outputId": "c16c851a-4a80-4d2a-a220-7a6620e13e2b" }, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
ModelEstimateStd. Error
0full reg HC0-0.0735510.042993
1full reg HC3-0.0735510.080251
2partial reg via lasso-0.0674750.015436
\n", - "
" - ], - "text/plain": [ - " Model Estimate Std. Error\n", - "0 full reg HC0 -0.073551 0.042993\n", - "1 full reg HC3 -0.073551 0.080251\n", - "2 partial reg via lasso -0.067475 0.015436" - ] - }, - "execution_count": 34, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "table3 = pd.DataFrame()\n", "\n", @@ -3002,7 +763,7 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -3010,21 +771,7 @@ "id": "1NEU_9xj9lcY", "outputId": "53c7e1dc-3fcc-469c-80ad-c9f2b5d47a8b" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\\begin{tabular}{llrr}\n", - " & Model & Estimate & Std. Error \\\\\n", - "0 & full reg HC0 & -0.073551 & 0.042993 \\\\\n", - "1 & full reg HC3 & -0.073551 & 0.080251 \\\\\n", - "2 & partial reg via lasso & -0.067475 & 0.015436 \\\\\n", - "\\end{tabular}\n", - "\n" - ] - } - ], + "outputs": [], "source": [ "# print to Latex\n", "print(table3.style.to_latex())"