---------------------------------------------------------------------------------------------------------- name: log: C:\Users\Aki\Documents\stata\april.log log type: text opened on: 18 Apr 2022, 18:36:11 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . sysuse auto, clear (1978 Automobile Data) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . reg foreign price mpg i.rep78 Source | SS df MS Number of obs = 69 -------------+---------------------------------- F(6, 62) = 8.33 Model | 6.51883662 6 1.08647277 Prob > F = 0.0000 Residual | 8.08985903 62 .130481597 R-squared = 0.4462 -------------+---------------------------------- Adj R-squared = 0.3926 Total | 14.6086957 68 .21483376 Root MSE = .36122 ------------------------------------------------------------------------------ foreign | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- price | .0000213 .0000175 1.22 0.226 -.0000136 .0000563 mpg | .0235328 .0098398 2.39 0.020 .0038633 .0432022 | rep78 | 2 | .0141684 .2864299 0.05 0.961 -.5583968 .5867337 3 | .0970575 .2653092 0.37 0.716 -.433288 .6274031 4 | .4521384 .2709194 1.67 0.100 -.0894217 .9936984 5 | .6396386 .2881761 2.22 0.030 .0635828 1.215694 | _cons | -.591636 .3615003 -1.64 0.107 -1.314265 .1309928 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . predict yhat (option xb assumed; fitted values) (5 missing values generated) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . su yhat Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- yhat | 69 .3043478 .3096211 -.0752825 1.128067 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . logit foreign price mpg i.rep78 note: 1.rep78 != 0 predicts failure perfectly 1.rep78 dropped and 2 obs not used note: 2.rep78 != 0 predicts failure perfectly 2.rep78 dropped and 8 obs not used note: 5.rep78 omitted because of collinearity Iteration 0: log likelihood = -38.411464 Iteration 1: log likelihood = -25.255201 Iteration 2: log likelihood = -24.945784 Iteration 3: log likelihood = -24.944331 Iteration 4: log likelihood = -24.944331 Logistic regression Number of obs = 59 LR chi2(4) = 26.93 Prob > chi2 = 0.0000 Log likelihood = -24.944331 Pseudo R2 = 0.3506 ------------------------------------------------------------------------------ foreign | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- price | .0001496 .0001402 1.07 0.286 -.0001251 .0004244 mpg | .164654 .0786543 2.09 0.036 .0104944 .3188137 | rep78 | 1 | 0 (empty) 2 | 0 (empty) 3 | -2.98942 1.05364 -2.84 0.005 -5.054516 -.9243239 4 | -.9823302 .9877518 -0.99 0.320 -2.918288 .9536278 5 | 0 (omitted) | _cons | -3.505712 2.477699 -1.41 0.157 -8.361914 1.35049 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . probit foreign price mpg i.rep78 note: 1.rep78 != 0 predicts failure perfectly 1.rep78 dropped and 2 obs not used note: 2.rep78 != 0 predicts failure perfectly 2.rep78 dropped and 8 obs not used note: 5.rep78 omitted because of collinearity Iteration 0: log likelihood = -38.411464 Iteration 1: log likelihood = -25.247879 Iteration 2: log likelihood = -25.076887 Iteration 3: log likelihood = -25.076708 Iteration 4: log likelihood = -25.076708 Probit regression Number of obs = 59 LR chi2(4) = 26.67 Prob > chi2 = 0.0000 Log likelihood = -25.076708 Pseudo R2 = 0.3472 ------------------------------------------------------------------------------ foreign | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- price | .0000859 .0000835 1.03 0.304 -.0000779 .0002496 mpg | .0928411 .043865 2.12 0.034 .0068672 .178815 | rep78 | 1 | 0 (empty) 2 | 0 (empty) 3 | -1.644213 .5773855 -2.85 0.004 -2.775868 -.512558 4 | -.4745232 .560085 -0.85 0.397 -1.57227 .6232233 5 | 0 (omitted) | _cons | -2.069881 1.494918 -1.38 0.166 -4.999867 .8601047 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . logit foreign price mpt weight variable mpt not found r(111); end of do-file r(111); . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . logit foreign price mpg weight Iteration 0: log likelihood = -45.03321 Iteration 1: log likelihood = -22.244792 Iteration 2: log likelihood = -18.069284 Iteration 3: log likelihood = -17.184699 Iteration 4: log likelihood = -17.161975 Iteration 5: log likelihood = -17.161893 Iteration 6: log likelihood = -17.161893 Logistic regression Number of obs = 74 LR chi2(3) = 55.74 Prob > chi2 = 0.0000 Log likelihood = -17.161893 Pseudo R2 = 0.6189 ------------------------------------------------------------------------------ foreign | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- price | .0009264 .0003074 3.01 0.003 .000324 .0015288 mpg | -.1210918 .0956855 -1.27 0.206 -.308632 .0664483 weight | -.0068497 .0019996 -3.43 0.001 -.0107688 -.0029306 _cons | 14.42237 5.414367 2.66 0.008 3.81041 25.03434 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . logit foreign price mpg weight, or Iteration 0: log likelihood = -45.03321 Iteration 1: log likelihood = -22.244792 Iteration 2: log likelihood = -18.069284 Iteration 3: log likelihood = -17.184699 Iteration 4: log likelihood = -17.161975 Iteration 5: log likelihood = -17.161893 Iteration 6: log likelihood = -17.161893 Logistic regression Number of obs = 74 LR chi2(3) = 55.74 Prob > chi2 = 0.0000 Log likelihood = -17.161893 Pseudo R2 = 0.6189 ------------------------------------------------------------------------------ foreign | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- price | 1.000927 .0003077 3.01 0.003 1.000324 1.00153 mpg | .8859526 .0847728 -1.27 0.206 .734451 1.068706 weight | .9931737 .0019859 -3.43 0.001 .9892889 .9970737 _cons | 1834670 9933575 2.66 0.008 45.16896 7.45e+10 ------------------------------------------------------------------------------ Note: _cons estimates baseline odds. . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . margins, dydx(*) Average marginal effects Number of obs = 74 Model VCE : OIM Expression : Pr(foreign), predict() dy/dx w.r.t. : price mpg weight ------------------------------------------------------------------------------ | Delta-method | dy/dx Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- price | .0000686 .0000136 5.04 0.000 .0000419 .0000952 mpg | -.0089607 .006596 -1.36 0.174 -.0218886 .0039672 weight | -.0005069 .000055 -9.21 0.000 -.0006148 -.000399 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . margins, dydx(*) atmeans Conditional marginal effects Number of obs = 74 Model VCE : OIM Expression : Pr(foreign), predict() dy/dx w.r.t. : price mpg weight at : price = 6165.257 (mean) mpg = 21.2973 (mean) weight = 3019.459 (mean) ------------------------------------------------------------------------------ | Delta-method | dy/dx Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- price | .0000373 .0000275 1.36 0.175 -.0000166 .0000911 mpg | -.0048703 .0056638 -0.86 0.390 -.0159712 .0062306 weight | -.0002755 .0002073 -1.33 0.184 -.0006819 .0001309 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . estat classification Logistic model for foreign -------- True -------- Classified | D ~D | Total -----------+--------------------------+----------- + | 19 5 | 24 - | 3 47 | 50 -----------+--------------------------+----------- Total | 22 52 | 74 Classified + if predicted Pr(D) >= .5 True D defined as foreign != 0 -------------------------------------------------- Sensitivity Pr( +| D) 86.36% Specificity Pr( -|~D) 90.38% Positive predictive value Pr( D| +) 79.17% Negative predictive value Pr(~D| -) 94.00% -------------------------------------------------- False + rate for true ~D Pr( +|~D) 9.62% False - rate for true D Pr( -| D) 13.64% False + rate for classified + Pr(~D| +) 20.83% False - rate for classified - Pr( D| -) 6.00% -------------------------------------------------- Correctly classified 89.19% -------------------------------------------------- . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . use http://fmwww.bc.edu/ec-p/data/wooldridge/mroz, clear . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . reg inlf nwifeinc educ exper expersq age kidslt6 kidsge6 Source | SS df MS Number of obs = 753 -------------+---------------------------------- F(7, 745) = 38.22 Model | 48.8080578 7 6.97257968 Prob > F = 0.0000 Residual | 135.919698 745 .182442547 R-squared = 0.2642 -------------+---------------------------------- Adj R-squared = 0.2573 Total | 184.727756 752 .245648611 Root MSE = .42713 ------------------------------------------------------------------------------ inlf | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- nwifeinc | -.0034052 .0014485 -2.35 0.019 -.0062488 -.0005616 educ | .0379953 .007376 5.15 0.000 .023515 .0524756 exper | .0394924 .0056727 6.96 0.000 .0283561 .0506287 expersq | -.0005963 .0001848 -3.23 0.001 -.0009591 -.0002335 age | -.0160908 .0024847 -6.48 0.000 -.0209686 -.011213 kidslt6 | -.2618105 .0335058 -7.81 0.000 -.3275875 -.1960335 kidsge6 | .0130122 .013196 0.99 0.324 -.0128935 .0389179 _cons | .5855192 .154178 3.80 0.000 .2828442 .8881943 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . predict yhat (option xb assumed; fitted values) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . su yhat Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- yhat | 753 .5683931 .2547633 -.3451103 1.127151 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . logit inlf nwifeinc educ exper expersq age kidslt6 kidsge6 Iteration 0: log likelihood = -514.8732 Iteration 1: log likelihood = -402.38502 Iteration 2: log likelihood = -401.76569 Iteration 3: log likelihood = -401.76515 Iteration 4: log likelihood = -401.76515 Logistic regression Number of obs = 753 LR chi2(7) = 226.22 Prob > chi2 = 0.0000 Log likelihood = -401.76515 Pseudo R2 = 0.2197 ------------------------------------------------------------------------------ inlf | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- nwifeinc | -.0213452 .0084214 -2.53 0.011 -.0378509 -.0048394 educ | .2211704 .0434396 5.09 0.000 .1360303 .3063105 exper | .2058695 .0320569 6.42 0.000 .1430391 .2686999 expersq | -.0031541 .0010161 -3.10 0.002 -.0051456 -.0011626 age | -.0880244 .014573 -6.04 0.000 -.116587 -.0594618 kidslt6 | -1.443354 .2035849 -7.09 0.000 -1.842373 -1.044335 kidsge6 | .0601122 .0747897 0.80 0.422 -.086473 .2066974 _cons | .4254524 .8603697 0.49 0.621 -1.260841 2.111746 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . probit inlf nwifeinc educ exper expersq age kidslt6 kidsge6 Iteration 0: log likelihood = -514.8732 Iteration 1: log likelihood = -402.06651 Iteration 2: log likelihood = -401.30273 Iteration 3: log likelihood = -401.30219 Iteration 4: log likelihood = -401.30219 Probit regression Number of obs = 753 LR chi2(7) = 227.14 Prob > chi2 = 0.0000 Log likelihood = -401.30219 Pseudo R2 = 0.2206 ------------------------------------------------------------------------------ inlf | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- nwifeinc | -.0120237 .0048398 -2.48 0.013 -.0215096 -.0025378 educ | .1309047 .0252542 5.18 0.000 .0814074 .180402 exper | .1233476 .0187164 6.59 0.000 .0866641 .1600311 expersq | -.0018871 .0006 -3.15 0.002 -.003063 -.0007111 age | -.0528527 .0084772 -6.23 0.000 -.0694678 -.0362376 kidslt6 | -.8683285 .1185223 -7.33 0.000 -1.100628 -.636029 kidsge6 | .036005 .0434768 0.83 0.408 -.049208 .1212179 _cons | .2700768 .508593 0.53 0.595 -.7267472 1.266901 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . margins, dydx(*) Average marginal effects Number of obs = 753 Model VCE : OIM Expression : Pr(inlf), predict() dy/dx w.r.t. : nwifeinc educ exper expersq age kidslt6 kidsge6 ------------------------------------------------------------------------------ | Delta-method | dy/dx Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- nwifeinc | -.0036162 .0014414 -2.51 0.012 -.0064413 -.0007911 educ | .0393703 .0072216 5.45 0.000 .0252161 .0535244 exper | .0370974 .0051522 7.20 0.000 .0269993 .0471956 expersq | -.0005675 .0001771 -3.20 0.001 -.0009146 -.0002204 age | -.0158957 .0023587 -6.74 0.000 -.0205186 -.0112728 kidslt6 | -.2611542 .0318597 -8.20 0.000 -.3235982 -.1987103 kidsge6 | .0108287 .0130584 0.83 0.407 -.0147654 .0364227 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . mfx compute, at(mean kidslt6=0) Marginal effects after probit y = Pr(inlf) (predict) = .65992385 ------------------------------------------------------------------------------ variable | dy/dx Std. Err. z P>|z| [ 95% C.I. ] X ---------+-------------------------------------------------------------------- nwifeinc | -.004406 .00177 -2.48 0.013 -.007882 -.00093 20.129 educ | .047969 .00921 5.21 0.000 .029909 .066029 12.2869 exper | .0451997 .00694 6.51 0.000 .031589 .05881 10.6308 expersq | -.0006915 .00022 -3.13 0.002 -.001124 -.000259 178.039 age | -.0193674 .00302 -6.41 0.000 -.025287 -.013448 42.5378 kidslt6 | -.3181918 .04017 -7.92 0.000 -.396915 -.239469 0 kidsge6 | .0131937 .01596 0.83 0.408 -.018087 .044475 1.35325 ------------------------------------------------------------------------------ . mfx compute, at(mean kidslt6=1) Marginal effects after probit y = Pr(inlf) (predict) = .32416867 ------------------------------------------------------------------------------ variable | dy/dx Std. Err. z P>|z| [ 95% C.I. ] X ---------+-------------------------------------------------------------------- nwifeinc | -.004323 .00175 -2.48 0.013 -.007744 -.000902 20.129 educ | .047065 .00912 5.16 0.000 .029187 .064943 12.2869 exper | .0443479 .00704 6.30 0.000 .03055 .058146 10.6308 expersq | -.0006785 .00022 -3.11 0.002 -.001106 -.000251 178.039 age | -.0190025 .00284 -6.69 0.000 -.024568 -.013437 42.5378 kidslt6 | -.3121957 .03077 -10.15 0.000 -.372509 -.251882 1 kidsge6 | .0129451 .0157 0.82 0.410 -.017829 .04372 1.35325 ------------------------------------------------------------------------------ . mfx compute, at(mean kidslt6=2) Marginal effects after probit y = Pr(inlf) (predict) = .09268483 ------------------------------------------------------------------------------ variable | dy/dx Std. Err. z P>|z| [ 95% C.I. ] X ---------+-------------------------------------------------------------------- nwifeinc | -.0019956 .00096 -2.07 0.039 -.003886 -.000106 20.129 educ | .021726 .007 3.10 0.002 .008003 .035449 12.2869 exper | .0204718 .00658 3.11 0.002 .007583 .033361 10.6308 expersq | -.0003132 .00013 -2.34 0.019 -.000575 -.000051 178.039 age | -.0087719 .00227 -3.86 0.000 -.013226 -.004318 42.5378 kidslt6 | -.144115 .02226 -6.47 0.000 -.18774 -.10049 2 kidsge6 | .0059757 .0076 0.79 0.432 -.008916 .020867 1.35325 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . mfx compute, at(mean kidslt6=3) Marginal effects after probit y = Pr(inlf) (predict) = .01416341 ------------------------------------------------------------------------------ variable | dy/dx Std. Err. z P>|z| [ 95% C.I. ] X ---------+-------------------------------------------------------------------- nwifeinc | -.0004334 .00035 -1.23 0.219 -.001125 .000258 20.129 educ | .0047185 .00342 1.38 0.168 -.001985 .011422 12.2869 exper | .0044461 .00329 1.35 0.176 -.002 .010892 10.6308 expersq | -.000068 .00005 -1.26 0.207 -.000174 .000038 178.039 age | -.0019051 .00128 -1.49 0.135 -.004405 .000595 42.5378 kidslt6 | -.0312994 .01846 -1.70 0.090 -.067487 .004888 3 kidsge6 | .0012978 .00192 0.68 0.499 -.002466 .005061 1.35325 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . estat classification Probit model for inlf -------- True -------- Classified | D ~D | Total -----------+--------------------------+----------- + | 348 120 | 468 - | 80 205 | 285 -----------+--------------------------+----------- Total | 428 325 | 753 Classified + if predicted Pr(D) >= .5 True D defined as inlf != 0 -------------------------------------------------- Sensitivity Pr( +| D) 81.31% Specificity Pr( -|~D) 63.08% Positive predictive value Pr( D| +) 74.36% Negative predictive value Pr(~D| -) 71.93% -------------------------------------------------- False + rate for true ~D Pr( +|~D) 36.92% False - rate for true D Pr( -| D) 18.69% False + rate for classified + Pr(~D| +) 25.64% False - rate for classified - Pr( D| -) 28.07% -------------------------------------------------- Correctly classified 73.44% -------------------------------------------------- . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . sum hours Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- hours | 753 740.5764 871.3142 0 4950 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . sum hours if hours>0 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- hours | 428 1302.93 776.2744 12 4950 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . histogram hours (bin=27, start=0, width=183.33333) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . reg hours nwifeinc educ exper expersq age kidslt6 kidsge6 Source | SS df MS Number of obs = 753 -------------+---------------------------------- F(7, 745) = 38.50 Model | 151647606 7 21663943.7 Prob > F = 0.0000 Residual | 419262118 745 562767.944 R-squared = 0.2656 -------------+---------------------------------- Adj R-squared = 0.2587 Total | 570909724 752 759188.463 Root MSE = 750.18 ------------------------------------------------------------------------------ hours | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- nwifeinc | -3.446636 2.544 -1.35 0.176 -8.440898 1.547626 educ | 28.76112 12.95459 2.22 0.027 3.329283 54.19297 exper | 65.67251 9.962983 6.59 0.000 46.11365 85.23138 expersq | -.7004939 .3245501 -2.16 0.031 -1.337635 -.0633524 age | -30.51163 4.363868 -6.99 0.000 -39.07858 -21.94469 kidslt6 | -442.0899 58.8466 -7.51 0.000 -557.6148 -326.565 kidsge6 | -32.77923 23.17622 -1.41 0.158 -78.2777 12.71924 _cons | 1330.482 270.7846 4.91 0.000 798.8906 1862.074 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . tobit hours nwifeinc educ exper expersq age kidslt6 kidsge6 Iteration 0: log likelihood = -6049.5337 Iteration 1: log likelihood = -6049.5337 Tobit regression Number of obs = 753 Uncensored = 753 Limits: lower = -inf Left-censored = 0 upper = +inf Right-censored = 0 LR chi2(7) = 232.48 Prob > chi2 = 0.0000 Log likelihood = -6049.5337 Pseudo R2 = 0.0189 ------------------------------------------------------------------------------ hours | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- nwifeinc | -3.446636 2.53045 -1.36 0.174 -8.414286 1.521015 educ | 28.76112 12.88559 2.23 0.026 3.464795 54.05745 exper | 65.67251 9.909917 6.63 0.000 46.21787 85.12716 expersq | -.7004939 .3228214 -2.17 0.030 -1.33424 -.0667474 age | -30.51163 4.340625 -7.03 0.000 -39.03293 -21.99034 kidslt6 | -442.0899 58.53317 -7.55 0.000 -556.9992 -327.1806 kidsge6 | -32.77923 23.05278 -1.42 0.155 -78.03526 12.47681 _cons | 1330.482 269.3424 4.94 0.000 801.7232 1859.242 -------------+---------------------------------------------------------------- var(e.hours)| 556789 28695.13 503212.2 616070.1 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . mfx compute, at(mean kidslt6==0) kidslt6==0 found where expected in at() r(198); end of do-file r(198); . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . predict yhat variable yhat already defined r(110); end of do-file r(110); . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . drop yhat . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . tobit hours nwifeinc educ exper expersq age kidslt6 kidsge6 Iteration 0: log likelihood = -6049.5337 Iteration 1: log likelihood = -6049.5337 Tobit regression Number of obs = 753 Uncensored = 753 Limits: lower = -inf Left-censored = 0 upper = +inf Right-censored = 0 LR chi2(7) = 232.48 Prob > chi2 = 0.0000 Log likelihood = -6049.5337 Pseudo R2 = 0.0189 ------------------------------------------------------------------------------ hours | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- nwifeinc | -3.446636 2.53045 -1.36 0.174 -8.414286 1.521015 educ | 28.76112 12.88559 2.23 0.026 3.464795 54.05745 exper | 65.67251 9.909917 6.63 0.000 46.21787 85.12716 expersq | -.7004939 .3228214 -2.17 0.030 -1.33424 -.0667474 age | -30.51163 4.340625 -7.03 0.000 -39.03293 -21.99034 kidslt6 | -442.0899 58.53317 -7.55 0.000 -556.9992 -327.1806 kidsge6 | -32.77923 23.05278 -1.42 0.155 -78.03526 12.47681 _cons | 1330.482 269.3424 4.94 0.000 801.7232 1859.242 -------------+---------------------------------------------------------------- var(e.hours)| 556789 28695.13 503212.2 616070.1 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . predict yhat (option xb assumed; fitted values) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . corr hours yhat (obs=753) | hours yhat -------------+------------------ hours | 1.0000 yhat | 0.5154 1.0000 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . ologit kidslt6 educ age faminc Iteration 0: log likelihood = -454.40471 Iteration 1: log likelihood = -374.55944 Iteration 2: log likelihood = -360.84649 Iteration 3: log likelihood = -360.65589 Iteration 4: log likelihood = -360.65586 Iteration 5: log likelihood = -360.65586 Ordered logistic regression Number of obs = 753 LR chi2(3) = 187.50 Prob > chi2 = 0.0000 Log likelihood = -360.65586 Pseudo R2 = 0.2063 ------------------------------------------------------------------------------ kidslt6 | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | .083606 .0528967 1.58 0.114 -.0200695 .1872816 age | -.1999525 .018979 -10.54 0.000 -.2371506 -.1627543 faminc | -5.60e-06 9.66e-06 -0.58 0.562 -.0000245 .0000133 -------------+---------------------------------------------------------------- /cut1 | -5.505283 .9486815 -7.364664 -3.645901 /cut2 | -3.394343 .9496632 -5.255649 -1.533037 /cut3 | -1.013275 1.095637 -3.160684 1.134134 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . margins, dydx(*) Average marginal effects Number of obs = 753 Model VCE : OIM dy/dx w.r.t. : educ age faminc 1._predict : Pr(kidslt6==0), predict(pr outcome(0)) 2._predict : Pr(kidslt6==1), predict(pr outcome(1)) 3._predict : Pr(kidslt6==2), predict(pr outcome(2)) 4._predict : Pr(kidslt6==3), predict(pr outcome(3)) ------------------------------------------------------------------------------ | Delta-method | dy/dx Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | _predict | 1 | -.0099657 .0062607 -1.59 0.111 -.0222363 .002305 2 | .0070479 .0044427 1.59 0.113 -.0016596 .0157553 3 | .0025911 .0016911 1.53 0.125 -.0007235 .0059056 4 | .0003267 .0002775 1.18 0.239 -.0002171 .0008706 -------------+---------------------------------------------------------------- age | _predict | 1 | .0238339 .001635 14.58 0.000 .0206295 .0270384 2 | -.0168557 .001353 -12.46 0.000 -.0195075 -.0142039 3 | -.0061968 .0012116 -5.11 0.000 -.0085714 -.0038221 4 | -.0007814 .0004517 -1.73 0.084 -.0016667 .0001039 -------------+---------------------------------------------------------------- faminc | _predict | 1 | 6.68e-07 1.15e-06 0.58 0.561 -1.59e-06 2.92e-06 2 | -4.72e-07 8.14e-07 -0.58 0.562 -2.07e-06 1.12e-06 3 | -1.74e-07 3.00e-07 -0.58 0.563 -7.63e-07 4.15e-07 4 | -2.19e-08 3.97e-08 -0.55 0.581 -9.97e-08 5.59e-08 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . mlogit kidslt6 educ age faminc Iteration 0: log likelihood = -454.40471 Iteration 1: log likelihood = -417.62303 Iteration 2: log likelihood = -375.87614 Iteration 3: log likelihood = -356.66034 Iteration 4: log likelihood = -353.59159 Iteration 5: log likelihood = -352.77261 Iteration 6: log likelihood = -352.70098 Iteration 7: log likelihood = -352.70056 Iteration 8: log likelihood = -352.70056 Multinomial logistic regression Number of obs = 753 LR chi2(9) = 203.41 Prob > chi2 = 0.0000 Log likelihood = -352.70056 Pseudo R2 = 0.2238 ------------------------------------------------------------------------------ kidslt6 | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- 0 | (base outcome) -------------+---------------------------------------------------------------- 1 | educ | .0258635 .0569119 0.45 0.650 -.0856817 .1374087 age | -.1818536 .0195405 -9.31 0.000 -.2201523 -.143555 faminc | -2.11e-06 .0000104 -0.20 0.839 -.0000225 .0000182 _cons | 5.281995 1.010604 5.23 0.000 3.301246 7.262743 -------------+---------------------------------------------------------------- 2 | educ | .304491 .1088163 2.80 0.005 .0912149 .5177671 age | -.293142 .0582076 -5.04 0.000 -.4072268 -.1790571 faminc | -.0000601 .0000278 -2.16 0.031 -.0001146 -5.62e-06 _cons | 5.13859 2.400999 2.14 0.032 .4327174 9.844462 -------------+---------------------------------------------------------------- 3 | educ | -.0576873 .3249229 -0.18 0.859 -.6945245 .57915 age | -.3909892 .1987137 -1.97 0.049 -.780461 -.0015174 faminc | .000069 .0000294 2.35 0.019 .0000115 .0001265 _cons | 7.628388 7.441764 1.03 0.305 -6.957202 22.21398 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . margins, dydx(*) Average marginal effects Number of obs = 753 Model VCE : OIM dy/dx w.r.t. : educ age faminc 1._predict : Pr(kidslt6==0), predict(pr outcome(0)) 2._predict : Pr(kidslt6==1), predict(pr outcome(1)) 3._predict : Pr(kidslt6==2), predict(pr outcome(2)) 4._predict : Pr(kidslt6==3), predict(pr outcome(3)) ------------------------------------------------------------------------------ | Delta-method | dy/dx Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | _predict | 1 | -.0078519 .0063466 -1.24 0.216 -.020291 .0045872 2 | -.0005712 .0061291 -0.09 0.926 -.0125839 .0114415 3 | .0087349 .0032321 2.70 0.007 .0024001 .0150697 4 | -.0003117 .0011451 -0.27 0.785 -.0025561 .0019326 -------------+---------------------------------------------------------------- age | _predict | 1 | .0240406 .0017016 14.13 0.000 .0207054 .0273757 2 | -.0164748 .0019301 -8.54 0.000 -.0202578 -.0126919 3 | -.0064751 .0017911 -3.62 0.000 -.0099855 -.0029647 4 | -.0010906 .0008328 -1.31 0.190 -.0027229 .0005416 -------------+---------------------------------------------------------------- faminc | _predict | 1 | 1.14e-06 1.20e-06 0.95 0.343 -1.21e-06 3.48e-06 2 | 3.73e-07 1.14e-06 0.33 0.743 -1.85e-06 2.60e-06 3 | -1.77e-06 8.31e-07 -2.13 0.033 -3.40e-06 -1.44e-07 4 | 2.64e-07 1.53e-07 1.72 0.085 -3.66e-08 5.64e-07 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD3e04_000000.tmp" . log close name: log: C:\Users\Aki\Documents\stata\april.log log type: text closed on: 18 Apr 2022, 19:41:18 ---------------------------------------------------------------------------------------------------------------