. * prtab: version 1.5.10 . * verified: 3/24/01 . which prtab c:\stata6\ado\stbplus\p\prtab.ado *! version 1.5.10 1/11/01 using z instead of x for binary equations . use gsstestdata, clear . . * logit and logistic . qui logit feminist age educ lesbian liberal . prtab lesbian liberal, x(age 40 educ 12) base logit: Predicted probabilities of positive outcome for feminist ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.1307 0.1666 0.2100 0.2612 0.3198 0.3847 0.4540 1 | 0.1351 0.1720 0.2164 0.2687 0.3282 0.3938 0.4635 ----------+------------------------------------------------------- age educ lesbian liberal x= 40 12 .02452316 2.9019074 . prtab lesbian, x(age 40 educ 12) logit: Predicted probabilities of positive outcome for feminist ----------+----------- lesbian | Prediction ----------+----------- 0 | 0.2558 1 | 0.2632 ----------+----------- age educ lesbian liberal x= 40 12 .02452316 2.9019074 . qui logistic feminist age educ lesbian liberal . prtab lesbian, x(age 40 educ 12) logistic: Predicted probabilities of positive outcome for feminist ----------+----------- lesbian | Prediction ----------+----------- 0 | 0.2558 1 | 0.2632 ----------+----------- age educ lesbian liberal x= 40 12 .02452316 2.9019074 . . * probit . qui probit feminist age educ lesbian liberal . prtab lesbian liberal, x(age lower educ upper) rest(mean) base probit: Predicted probabilities of positive outcome for feminist ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.1689 0.2142 0.2657 0.3230 0.3847 0.4495 0.5158 1 | 0.1742 0.2203 0.2726 0.3304 0.3927 0.4578 0.5240 ----------+------------------------------------------------------- age educ lesbian liberal x= 18 20 .02452316 2.9019074 . . * cloglog . qui cloglog feminist age educ lesbian liberal . prtab lesbian liberal, x(age 40) rest(grmean) base cloglog: Predicted probabilities of positive outcome for feminist ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.1546 0.1932 0.2400 0.2958 0.3613 0.4362 0.5194 1 | 0.1584 0.1979 0.2456 0.3025 0.3690 0.4449 0.5288 ----------+------------------------------------------------------- age educ lesbian liberal x= 40 14.764706 .05882353 3.2352941 . . * ologit . qui ologit mchilds age educ lesbian liberal . prtab lesbian liberal, x(age max educ min) ologit: Predicted probabilities for mchilds Predicted probability of outcome 0 (no_children) ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.0047 0.0052 0.0058 0.0065 0.0072 0.0080 0.0089 1 | 0.0095 0.0106 0.0118 0.0131 0.0146 0.0163 0.0181 ----------+------------------------------------------------------- Predicted probability of outcome 1 (one_child) ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.0077 0.0085 0.0095 0.0105 0.0117 0.0130 0.0145 1 | 0.0154 0.0171 0.0190 0.0210 0.0233 0.0258 0.0286 ----------+------------------------------------------------------- Predicted probability of outcome 2 (two_children) ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.0344 0.0381 0.0421 0.0466 0.0514 0.0567 0.0625 1 | 0.0663 0.0729 0.0800 0.0877 0.0961 0.1050 0.1145 ----------+------------------------------------------------------- Predicted probability of outcome 3 (three_children) ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.9532 0.9481 0.9426 0.9364 0.9297 0.9222 0.9141 1 | 0.9088 0.8994 0.8892 0.8781 0.8660 0.8529 0.8389 ----------+------------------------------------------------------- age educ lesbian liberal x= 89 0 .02450331 2.8768212 . prtab lesbian, x(age max educ min) ologit: Predicted probabilities for mchilds Predicted probability of outcome 0 (no_children) ----------+----------- lesbian | Prediction ----------+----------- 0 | 0.0064 1 | 0.0130 ----------+----------- Predicted probability of outcome 1 (one_child) ----------+----------- lesbian | Prediction ----------+----------- 0 | 0.0104 1 | 0.0208 ----------+----------- Predicted probability of outcome 2 (two_children) ----------+----------- lesbian | Prediction ----------+----------- 0 | 0.0460 1 | 0.0868 ----------+----------- Predicted probability of outcome 3 (three_children) ----------+----------- lesbian | Prediction ----------+----------- 0 | 0.9372 1 | 0.8795 ----------+----------- age educ lesbian liberal x= 89 0 .02450331 2.8768212 . . * oprobit . qui ologit mchilds age educ lesbian liberal . prtab lesbian liberal, x(age max educ min) outcome(2) base ologit: Predicted probabilities of outcome 2 (two_children) for mchilds ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.0344 0.0381 0.0421 0.0466 0.0514 0.0567 0.0625 1 | 0.0663 0.0729 0.0800 0.0877 0.0961 0.1050 0.1145 ----------+------------------------------------------------------- age educ lesbian liberal x= 89 0 .02450331 2.8768212 . . * oprobit . qui oprobit mchilds age educ lesbian liberal . prtab lesbian liberal, x(age mean educ 12) rest(upper) base oprobit: Predicted probabilities for mchilds Predicted probability of outcome 0 (no_children) ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.1315 0.1459 0.1613 0.1778 0.1952 0.2137 0.2331 1 | 0.2341 0.2546 0.2759 0.2980 0.3210 0.3446 0.3689 ----------+------------------------------------------------------- Predicted probability of outcome 1 (one_child) ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.1634 0.1719 0.1800 0.1878 0.1951 0.2018 0.2079 1 | 0.2082 0.2136 0.2182 0.2220 0.2249 0.2269 0.2280 ----------+------------------------------------------------------- Predicted probability of outcome 2 (two_children) ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.3144 0.3163 0.3170 0.3163 0.3144 0.3113 0.3070 1 | 0.3067 0.3012 0.2946 0.2870 0.2784 0.2691 0.2590 ----------+------------------------------------------------------- Predicted probability of outcome 3 (three_children) ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.3906 0.3659 0.3417 0.3181 0.2953 0.2732 0.2520 1 | 0.2509 0.2307 0.2114 0.1930 0.1757 0.1594 0.1441 ----------+------------------------------------------------------- age educ lesbian liberal x= 45.007947 12 0 0 . . * mlogit . qui mlogit mchilds age educ lesbian liberal . prtab lesbian educ, x(liberal 4 educ 12) mlogit: Predicted probabilities for mchilds Predicted probability of outcome 0 (no_children) --------+---------------------------------------------------------------------- | highest year of school complete lesbian | 0 3 4 5 6 7 8 9 10 11 --------+---------------------------------------------------------------------- 0 | 0.0192 0.0353 0.0430 0.0521 0.0629 0.0756 0.0903 0.1073 0.1269 0.1490 1 | 0.0417 0.0748 0.0900 0.1077 0.1282 0.1516 0.1780 0.2075 0.2400 0.2754 --------+---------------------------------------------------------------------- --------+--------------------------------------------------------------- | highest year of school complete lesbian | 12 13 14 15 16 17 18 19 20 --------+--------------------------------------------------------------- 0 | 0.1739 0.2016 0.2321 0.2651 0.3006 0.3382 0.3774 0.4178 0.4588 1 | 0.3133 0.3534 0.3951 0.4379 0.4811 0.5241 0.5662 0.6070 0.6460 --------+--------------------------------------------------------------- Predicted probability of outcome 1 (one_child) --------+---------------------------------------------------------------------- | highest year of school complete lesbian | 0 3 4 5 6 7 8 9 10 11 --------+---------------------------------------------------------------------- 0 | 0.1617 0.1832 0.1897 0.1956 0.2008 0.2051 0.2086 0.2109 0.2120 0.2119 1 | 0.1947 0.2151 0.2203 0.2243 0.2271 0.2284 0.2282 0.2263 0.2227 0.2174 --------+---------------------------------------------------------------------- --------+--------------------------------------------------------------- | highest year of school complete lesbian | 12 13 14 15 16 17 18 19 20 --------+--------------------------------------------------------------- 0 | 0.2104 0.2075 0.2032 0.1975 0.1905 0.1823 0.1730 0.1630 0.1523 1 | 0.2104 0.2019 0.1920 0.1810 0.1692 0.1568 0.1441 0.1314 0.1190 --------+--------------------------------------------------------------- Predicted probability of outcome 2 (two_children) --------+---------------------------------------------------------------------- | highest year of school complete lesbian | 0 3 4 5 6 7 8 9 10 11 --------+---------------------------------------------------------------------- 0 | 0.1747 0.2140 0.2273 0.2405 0.2534 0.2657 0.2772 0.2877 0.2969 0.3045 1 | 0.1626 0.1942 0.2041 0.2133 0.2216 0.2287 0.2345 0.2387 0.2410 0.2414 --------+---------------------------------------------------------------------- --------+--------------------------------------------------------------- | highest year of school complete lesbian | 12 13 14 15 16 17 18 19 20 --------+--------------------------------------------------------------- 0 | 0.3103 0.3140 0.3156 0.3147 0.3115 0.3060 0.2981 0.2881 0.2763 1 | 0.2398 0.2361 0.2305 0.2230 0.2139 0.2035 0.1919 0.1796 0.1669 --------+--------------------------------------------------------------- Predicted probability of outcome 3 (three_children) --------+---------------------------------------------------------------------- | highest year of school complete lesbian | 0 3 4 5 6 7 8 9 10 11 --------+---------------------------------------------------------------------- 0 | 0.6445 0.5674 0.5400 0.5118 0.4829 0.4536 0.4239 0.3941 0.3642 0.3346 1 | 0.6011 0.5160 0.4857 0.4547 0.4231 0.3912 0.3593 0.3275 0.2963 0.2658 --------+---------------------------------------------------------------------- --------+--------------------------------------------------------------- | highest year of school complete lesbian | 12 13 14 15 16 17 18 19 20 --------+--------------------------------------------------------------- 0 | 0.3054 0.2768 0.2492 0.2226 0.1974 0.1736 0.1515 0.1312 0.1127 1 | 0.2365 0.2086 0.1824 0.1581 0.1358 0.1157 0.0977 0.0819 0.0682 --------+--------------------------------------------------------------- age educ lesbian liberal x= 45.007947 12 .02450331 4 . prtab lesbian, outcome(3) mlogit: Predicted probabilities of outcome 3 (three_children) for mchilds ----------+----------- lesbian | Prediction ----------+----------- 0 | 0.2945 1 | 0.2240 ----------+----------- age educ lesbian liberal x= 45.007947 13.363576 .02450331 2.8768212 . . * poisson . qui poisson ctchilds age educ lesbian liberal feminist . prtab feminist lesbian, x(age 40 educ 12) by(liberal) base poisson: Predicted rates for ctchilds ----------+--------------- liberal | and Do | you think | of | yourself | lesbian as a f | 0 1 ----------+--------------- 0 | No | 2.0960 1.8693 Yes | 1.9039 1.6979 ----------+--------------- 1 | No | 2.0023 1.7857 Yes | 1.8187 1.6220 ----------+--------------- 2 | No | 1.9127 1.7058 Yes | 1.7374 1.5494 ----------+--------------- 3 | No | 1.8271 1.6295 Yes | 1.6596 1.4801 ----------+--------------- 4 | No | 1.7454 1.5566 Yes | 1.5854 1.4139 ----------+--------------- 5 | No | 1.6674 1.4870 Yes | 1.5145 1.3507 ----------+--------------- 6 | No | 1.5928 1.4205 Yes | 1.4468 1.2903 ----------+--------------- age educ lesbian liberal feminist x= 40 12 .02465753 2.9013699 .29452055 . prtab lesbian, x(age 40 educ 12) base poisson: Predicted rates for ctchilds ----------+----------- lesbian | Prediction ----------+----------- 0 | 1.7842 1 | 1.5912 ----------+----------- age educ lesbian liberal feminist x= 40 12 .02465753 2.9013699 .29452055 . qui poisson ctchilds age educ lesbian liberal feminist . prtab feminist lesbian, x(age 40 educ 12) by(liberal) outcome(4) poisson: Predicted probabilities of count = 4 for ctchilds ----------+--------------- liberal | and Do | you think | of | yourself | lesbian as a f | 0 1 ----------+--------------- 0 | No | 0.0989 0.0785 Yes | 0.0816 0.0634 ----------+--------------- 1 | No | 0.0904 0.0710 Yes | 0.0740 0.0570 ----------+--------------- 2 | No | 0.0824 0.0641 Yes | 0.0668 0.0510 ----------+--------------- 3 | No | 0.0747 0.0576 Yes | 0.0601 0.0455 ----------+--------------- 4 | No | 0.0675 0.0516 Yes | 0.0539 0.0405 ----------+--------------- 5 | No | 0.0608 0.0460 Yes | 0.0482 0.0359 ----------+--------------- 6 | No | 0.0545 0.0410 Yes | 0.0430 0.0318 ----------+--------------- age educ lesbian liberal feminist x= 40 12 .02465753 2.9013699 .29452055 . . * nbreg . qui nbreg ctchilds age educ lesbian liberal . prtab liberal lesbian, x(age 40 educ 12 liberal 3) base nbreg: Predicted rates for ctchilds ----------+--------------- | lesbian liberal | 0 1 ----------+--------------- 0 | 2.0701 1.5945 1 | 1.9729 1.5197 2 | 1.8803 1.4483 3 | 1.7920 1.3803 4 | 1.7078 1.3155 5 | 1.6277 1.2538 6 | 1.5512 1.1949 ----------+--------------- age educ lesbian liberal x= 40 12 .02450331 3 . qui nbreg ctchilds age educ lesbian liberal . prtab liberal lesbian, x(age 40 educ 12 liberal 3) outcome(1) nbreg: Predicted probabilities of count = 1 for ctchilds ----------+--------------- | lesbian liberal | 0 1 ----------+--------------- 0 | 0.2616 0.3199 1 | 0.2739 0.3281 2 | 0.2855 0.3354 3 | 0.2965 0.3418 4 | 0.3067 0.3473 5 | 0.3161 0.3519 6 | 0.3247 0.3555 ----------+--------------- age educ lesbian liberal x= 40 12 .02450331 3 . . * zip . qui zip zchilds age educ lesbian liberal, inf(age faminc liberal) . prtab lesbian liberal, x(age 40 educ median faminc 45) base zip: Predicted rates for zchilds ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.6123 0.5444 0.4828 0.4269 0.3765 0.3312 0.2907 1 | 0.7560 0.6723 0.5961 0.5272 0.4649 0.4090 0.3589 ----------+------------------------------------------------------- base x values for count equation: age educ lesbian liberal x= 40 13 .0252809 2.883427 base z values for binary equation: age faminc liberal z= 40 45 2.883427 . qui zip zchilds age educ lesbian liberal, inf(age faminc liberal) . prtab lesbian liberal, x(age 40 educ median faminc 45) outcome(0) zip: Predicted probabilities of count = 0 for zchilds ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.8030 0.8303 0.8551 0.8772 0.8967 0.9138 0.9285 1 | 0.7717 0.8022 0.8301 0.8552 0.8776 0.8974 0.9145 ----------+------------------------------------------------------- base x values for count equation: age educ lesbian liberal x= 40 13 .0252809 2.883427 base z values for binary equation: age faminc liberal z= 40 45 2.883427 . qui zip zchilds age educ lesbian liberal, inf(age faminc liberal) . prtab faminc liberal, x(age 40 educ median faminc 45) by(lesbian) zip: Predicted rates for zchilds ----------+------------------------------------------------------- lesbian | and | Family | liberal income | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | .5 | 0.5584 0.4946 0.4368 0.3848 0.3381 0.2964 0.2592 2 | 0.5602 0.4962 0.4383 0.3862 0.3394 0.2975 0.2602 3.5 | 0.5620 0.4979 0.4398 0.3876 0.3406 0.2987 0.2613 4.5 | 0.5632 0.4990 0.4409 0.3885 0.3415 0.2994 0.2619 5.5 | 0.5644 0.5001 0.4419 0.3894 0.3423 0.3002 0.2626 6.5 | 0.5656 0.5012 0.4429 0.3904 0.3432 0.3010 0.2633 7.5 | 0.5668 0.5023 0.4439 0.3913 0.3440 0.3017 0.2640 9 | 0.5686 0.5039 0.4454 0.3927 0.3453 0.3029 0.2650 11.25 | 0.5713 0.5064 0.4477 0.3948 0.3472 0.3046 0.2666 13.75 | 0.5743 0.5092 0.4503 0.3971 0.3493 0.3065 0.2683 16.25 | 0.5773 0.5120 0.4529 0.3995 0.3515 0.3085 0.2701 18.75 | 0.5803 0.5148 0.4554 0.4018 0.3536 0.3104 0.2718 21.25 | 0.5834 0.5176 0.4580 0.4042 0.3557 0.3123 0.2736 22 | 0.5843 0.5184 0.4588 0.4049 0.3564 0.3129 0.2741 23.75 | 0.5864 0.5204 0.4606 0.4065 0.3579 0.3143 0.2754 27.5 | 0.5909 0.5246 0.4645 0.4101 0.3612 0.3173 0.2780 32.5 | 0.5970 0.5303 0.4697 0.4149 0.3655 0.3212 0.2816 37.5 | 0.6031 0.5359 0.4749 0.4197 0.3699 0.3252 0.2852 45 | 0.6123 0.5444 0.4828 0.4269 0.3765 0.3312 0.2907 55 | 0.6246 0.5559 0.4934 0.4367 0.3855 0.3394 0.2980 67.5 | 0.6400 0.5703 0.5067 0.4490 0.3968 0.3497 0.3074 90 | 0.6679 0.5964 0.5311 0.4715 0.4175 0.3687 0.3247 ----------+------------------------------------------------------- 1 | .5 | 0.6895 0.6107 0.5394 0.4751 0.4175 0.3660 0.3201 2 | 0.6918 0.6127 0.5412 0.4769 0.4191 0.3674 0.3213 3.5 | 0.6940 0.6148 0.5431 0.4786 0.4206 0.3688 0.3226 4.5 | 0.6954 0.6161 0.5444 0.4797 0.4217 0.3697 0.3234 5.5 | 0.6969 0.6175 0.5456 0.4809 0.4227 0.3707 0.3243 6.5 | 0.6984 0.6189 0.5469 0.4820 0.4237 0.3716 0.3251 7.5 | 0.6999 0.6202 0.5481 0.4832 0.4248 0.3726 0.3260 9 | 0.7021 0.6223 0.5500 0.4849 0.4264 0.3740 0.3273 11.25 | 0.7054 0.6254 0.5529 0.4875 0.4287 0.3761 0.3292 13.75 | 0.7091 0.6288 0.5560 0.4904 0.4313 0.3785 0.3313 16.25 | 0.7129 0.6322 0.5592 0.4932 0.4340 0.3809 0.3335 18.75 | 0.7166 0.6357 0.5623 0.4962 0.4366 0.3833 0.3357 21.25 | 0.7203 0.6391 0.5655 0.4991 0.4393 0.3857 0.3378 22 | 0.7214 0.6402 0.5665 0.4999 0.4401 0.3864 0.3385 23.75 | 0.7241 0.6426 0.5687 0.5020 0.4419 0.3881 0.3400 27.5 | 0.7297 0.6478 0.5735 0.5064 0.4460 0.3917 0.3433 32.5 | 0.7372 0.6548 0.5799 0.5123 0.4513 0.3966 0.3477 37.5 | 0.7447 0.6617 0.5864 0.5182 0.4567 0.4015 0.3522 45 | 0.7560 0.6723 0.5961 0.5272 0.4649 0.4090 0.3589 55 | 0.7712 0.6864 0.6092 0.5392 0.4760 0.4190 0.3680 67.5 | 0.7903 0.7042 0.6257 0.5544 0.4899 0.4318 0.3796 90 | 0.8248 0.7365 0.6557 0.5822 0.5155 0.4552 0.4009 ----------+------------------------------------------------------- base x values for count equation: age educ lesbian liberal x= 40 13 .0252809 2.883427 base z values for binary equation: age faminc liberal z= 40 45 2.883427 . . * zinb . qui zinb zchilds age educ lesbian liberal, inf(age educ faminc) . prtab faminc lesbian, x(age 40 educ 12 faminc 45) by(liberal) zinb: Predicted rates for zchilds ----------+--------------- liberal | and | Family | lesbian income | 0 1 ----------+--------------- 0 | .5 | 0.8764 0.9041 2 | 0.8770 0.9047 3.5 | 0.8776 0.9054 4.5 | 0.8780 0.9058 5.5 | 0.8783 0.9062 6.5 | 0.8787 0.9066 7.5 | 0.8791 0.9070 9 | 0.8797 0.9076 11.25 | 0.8806 0.9085 13.75 | 0.8816 0.9095 16.25 | 0.8826 0.9105 18.75 | 0.8835 0.9115 21.25 | 0.8845 0.9125 22 | 0.8848 0.9128 23.75 | 0.8855 0.9135 27.5 | 0.8869 0.9150 32.5 | 0.8888 0.9170 37.5 | 0.8907 0.9189 45 | 0.8935 0.9218 55 | 0.8972 0.9257 67.5 | 0.9018 0.9304 90 | 0.9098 0.9386 ----------+--------------- 1 | .5 | 0.7921 0.8171 2 | 0.7926 0.8177 3.5 | 0.7931 0.8183 4.5 | 0.7935 0.8186 5.5 | 0.7938 0.8190 6.5 | 0.7942 0.8194 7.5 | 0.7946 0.8197 9 | 0.7951 0.8203 11.25 | 0.7959 0.8211 13.75 | 0.7968 0.8220 16.25 | 0.7977 0.8229 18.75 | 0.7985 0.8238 21.25 | 0.7994 0.8247 22 | 0.7997 0.8250 23.75 | 0.8003 0.8256 27.5 | 0.8016 0.8270 32.5 | 0.8033 0.8288 37.5 | 0.8050 0.8305 45 | 0.8076 0.8331 55 | 0.8109 0.8366 67.5 | 0.8150 0.8408 90 | 0.8222 0.8483 ----------+--------------- 2 | .5 | 0.7159 0.7385 2 | 0.7163 0.7390 3.5 | 0.7168 0.7395 4.5 | 0.7171 0.7399 5.5 | 0.7175 0.7402 6.5 | 0.7178 0.7405 7.5 | 0.7181 0.7409 9 | 0.7186 0.7414 11.25 | 0.7193 0.7421 13.75 | 0.7201 0.7429 16.25 | 0.7209 0.7438 18.75 | 0.7217 0.7446 21.25 | 0.7225 0.7454 22 | 0.7227 0.7456 23.75 | 0.7233 0.7462 27.5 | 0.7245 0.7474 32.5 | 0.7260 0.7490 37.5 | 0.7276 0.7506 45 | 0.7299 0.7530 55 | 0.7329 0.7561 67.5 | 0.7366 0.7600 90 | 0.7431 0.7667 ----------+--------------- 3 | .5 | 0.6470 0.6675 2 | 0.6474 0.6679 3.5 | 0.6479 0.6684 4.5 | 0.6482 0.6687 5.5 | 0.6484 0.6690 6.5 | 0.6487 0.6693 7.5 | 0.6490 0.6696 9 | 0.6495 0.6700 11.25 | 0.6501 0.6707 13.75 | 0.6508 0.6715 16.25 | 0.6516 0.6722 18.75 | 0.6523 0.6729 21.25 | 0.6530 0.6737 22 | 0.6532 0.6739 23.75 | 0.6537 0.6744 27.5 | 0.6548 0.6755 32.5 | 0.6562 0.6770 37.5 | 0.6576 0.6784 45 | 0.6597 0.6805 55 | 0.6624 0.6834 67.5 | 0.6658 0.6868 90 | 0.6716 0.6929 ----------+--------------- 4 | .5 | 0.5847 0.6033 2 | 0.5851 0.6037 3.5 | 0.5855 0.6041 4.5 | 0.5858 0.6044 5.5 | 0.5861 0.6046 6.5 | 0.5863 0.6049 7.5 | 0.5866 0.6052 9 | 0.5870 0.6056 11.25 | 0.5876 0.6062 13.75 | 0.5882 0.6069 16.25 | 0.5889 0.6075 18.75 | 0.5895 0.6082 21.25 | 0.5902 0.6089 22 | 0.5904 0.6091 23.75 | 0.5908 0.6095 27.5 | 0.5918 0.6105 32.5 | 0.5930 0.6118 37.5 | 0.5943 0.6131 45 | 0.5962 0.6151 55 | 0.5987 0.6176 67.5 | 0.6017 0.6208 90 | 0.6070 0.6263 ----------+--------------- 5 | .5 | 0.5285 0.5452 2 | 0.5288 0.5456 3.5 | 0.5292 0.5460 4.5 | 0.5294 0.5462 5.5 | 0.5297 0.5465 6.5 | 0.5299 0.5467 7.5 | 0.5302 0.5469 9 | 0.5305 0.5473 11.25 | 0.5310 0.5479 13.75 | 0.5316 0.5485 16.25 | 0.5322 0.5491 18.75 | 0.5328 0.5497 21.25 | 0.5334 0.5503 22 | 0.5336 0.5505 23.75 | 0.5340 0.5509 27.5 | 0.5348 0.5518 32.5 | 0.5360 0.5530 37.5 | 0.5371 0.5541 45 | 0.5388 0.5559 55 | 0.5411 0.5582 67.5 | 0.5438 0.5610 90 | 0.5486 0.5660 ----------+--------------- 6 | .5 | 0.4776 0.4928 2 | 0.4780 0.4931 3.5 | 0.4783 0.4934 4.5 | 0.4785 0.4937 5.5 | 0.4787 0.4939 6.5 | 0.4789 0.4941 7.5 | 0.4791 0.4943 9 | 0.4795 0.4947 11.25 | 0.4800 0.4952 13.75 | 0.4805 0.4957 16.25 | 0.4810 0.4963 18.75 | 0.4815 0.4968 21.25 | 0.4821 0.4973 22 | 0.4822 0.4975 23.75 | 0.4826 0.4979 27.5 | 0.4834 0.4987 32.5 | 0.4844 0.4998 37.5 | 0.4855 0.5008 45 | 0.4870 0.5024 55 | 0.4890 0.5045 67.5 | 0.4915 0.5071 90 | 0.4958 0.5116 ----------+--------------- base x values for count equation: age educ lesbian liberal x= 40 12 .0252809 2.883427 base z values for binary equation: age educ faminc z= 40 12 45 . qui zinb zchilds age educ lesbian liberal, inf(age educ faminc) . prtab liberal lesbian, x(age 40 educ median faminc 45) outcome(2) base zinb: Predicted probabilities of count = 2 for zchilds ----------+--------------- | lesbian liberal | 0 1 ----------+--------------- 0 | 0.0805 0.0823 1 | 0.0747 0.0765 2 | 0.0687 0.0706 3 | 0.0628 0.0646 4 | 0.0570 0.0588 5 | 0.0514 0.0531 6 | 0.0460 0.0476 ----------+--------------- base x values for count equation: age educ lesbian liberal x= 40 13 .0252809 2.883427 base z values for binary equation: age educ faminc z= 40 13 45 . prtab lesbian, x(age 40 educ median faminc 45) outcome(2) base zinb: Predicted probabilities of count = 2 for zchilds ----------+----------- lesbian | Prediction ----------+----------- 0 | 0.0635 1 | 0.0653 ----------+----------- base x values for count equation: age educ lesbian liberal x= 40 13 .0252809 2.883427 base z values for binary equation: age educ faminc z= 40 13 45 . . * regress . use nels_censored2, clear (nels_censored.dta after compress.) . qui regress realscor bymomed bydaded byincome black hispanic pctlunch . prtab black bymomed, x(bymomed 3 black 1) rest(grmean) base regress: Predicted values for realscor ----------+-------------------------------------------------------------- | bymomed black | 1 2 3 4 5 6 7 ----------+-------------------------------------------------------------- 0 | 98.675 100.244 101.812 103.381 104.95 106.519 108.088 1 | 89.1997 90.7685 92.3373 93.906 95.4748 97.0436 98.6123 ----------+-------------------------------------------------------------- bymomed bydaded byincome black hispanic pctlunch x= 3 3.0142857 25.110714 1 0 35.542857 . . *censored data models -- tobit, cnreg, intreg . qui tobit tobiscor bymomed bydaded byincome black hispanic pctlunch, ul(125) > ll(75) . set trace off . prtab bymomed bydaded black, x(bymomed 3 black 1) rest(grmedian) base tobit: Predicted values of y* for tobiscor ----------+-------------------------------------------------------------- | black and bydaded | ----------------------------- 0 ----------------------------- bymomed | 1 2 3 4 5 6 7 ----------+-------------------------------------------------------------- 1 | 93.1192 95.5284 97.9375 100.347 102.756 105.165 107.574 2 | 94.7764 97.1855 99.5946 102.004 104.413 106.822 109.231 3 | 96.4336 98.8427 101.252 103.661 106.07 108.479 110.888 4 | 98.0907 100.5 102.909 105.318 107.727 110.136 112.545 5 | 99.7479 102.157 104.566 106.975 109.384 111.793 114.203 6 | 101.405 103.814 106.223 108.632 111.042 113.451 115.86 7 | 103.062 105.471 107.88 110.29 112.699 115.108 117.517 ----------+-------------------------------------------------------------- ----------+-------------------------------------------------------------- | black and bydaded | ----------------------------- 1 ----------------------------- bymomed | 1 2 3 4 5 6 7 ----------+-------------------------------------------------------------- 1 | 82.7078 85.1169 87.526 89.9351 92.3442 94.7533 97.1625 2 | 84.3649 86.774 89.1832 91.5923 94.0014 96.4105 98.8196 3 | 86.0221 88.4312 90.8403 93.2494 95.6586 98.0677 100.477 4 | 87.6793 90.0884 92.4975 94.9066 97.3157 99.7248 102.134 5 | 89.3364 91.7456 94.1547 96.5638 98.9729 101.382 103.791 6 | 90.9936 93.4027 95.8118 98.2209 100.63 103.039 105.448 7 | 92.6508 95.0599 97.469 99.8781 102.287 104.696 107.105 ----------+-------------------------------------------------------------- bymomed bydaded byincome black hispanic pctlunch x= 3 3 22.5 1 0 40 . . qui cnreg testscor bymomed bydaded byincome black hispanic pctlunch, censored > (censor) . prtab black byincome, x(bymomed 3 black 1) base cnreg: Predicted values of y* for testscor ------+------------------------------------------------------------------------ | byincome black | 0 .5 2 4 6.25 8.75 12.5 17.5 22.5 ------+------------------------------------------------------------------------ 0 | 101.457 101.483 101.562 101.668 101.786 101.918 102.116 102.38 102.644 1 | 90.435 90.4614 90.5405 90.646 90.7647 90.8966 91.0945 91.3583 91.6221 ------+------------------------------------------------------------------------ ------+------------------------------------------------ | byincome black | 30 42.5 62.5 87.5 150 200 ------+------------------------------------------------ 0 | 103.04 103.699 104.754 106.073 109.371 112.009 1 | 92.0178 92.6773 93.7325 95.0515 98.3491 100.987 ------+------------------------------------------------ bymomed bydaded byincome black hispanic pctlunch x= 3 3.355953 44.043661 1 .1067859 21.906716 . . qui intreg minscor maxscor bymomed bydaded byincome black hispanic pctlunch . prtab black bymomed bydaded, x(bymomed 3 black 1) rest(max) base intreg: Predicted values of y* for minscor maxscor ----------+-------------------------------------------------------------- | bydaded and bymomed | ----------------------------- 1 ----------------------------- black | 1 2 3 4 5 6 7 ----------+-------------------------------------------------------------- 0 | 92.3917 93.9917 95.5916 97.1916 98.7916 100.392 101.992 1 | 82.3898 83.9898 85.5897 87.1897 88.7897 90.3896 91.9896 ----------+-------------------------------------------------------------- ----------+-------------------------------------------------------------- | bydaded and bymomed | ----------------------------- 2 ----------------------------- black | 1 2 3 4 5 6 7 ----------+-------------------------------------------------------------- 0 | 94.672 96.272 97.8719 99.4719 101.072 102.672 104.272 1 | 84.6701 86.2701 87.87 89.47 91.07 92.67 94.2699 ----------+-------------------------------------------------------------- ----------+-------------------------------------------------------------- | bydaded and bymomed | ----------------------------- 3 ----------------------------- black | 1 2 3 4 5 6 7 ----------+-------------------------------------------------------------- 0 | 96.9523 98.5523 100.152 101.752 103.352 104.952 106.552 1 | 86.9504 88.5504 90.1503 91.7503 93.3503 94.9503 96.5502 ----------+-------------------------------------------------------------- ----------+-------------------------------------------------------------- | bydaded and bymomed | ----------------------------- 4 ----------------------------- black | 1 2 3 4 5 6 7 ----------+-------------------------------------------------------------- 0 | 99.2326 100.833 102.433 104.033 105.632 107.232 108.832 1 | 89.2307 90.8307 92.4306 94.0306 95.6306 97.2306 98.8305 ----------+-------------------------------------------------------------- ----------+-------------------------------------------------------------- | bydaded and bymomed | ----------------------------- 5 ----------------------------- black | 1 2 3 4 5 6 7 ----------+-------------------------------------------------------------- 0 | 101.513 103.113 104.713 106.313 107.913 109.513 111.113 1 | 91.511 93.111 94.711 96.3109 97.9109 99.5109 101.111 ----------+-------------------------------------------------------------- ----------+-------------------------------------------------------------- | bydaded and bymomed | ----------------------------- 6 ----------------------------- black | 1 2 3 4 5 6 7 ----------+-------------------------------------------------------------- 0 | 103.793 105.393 106.993 108.593 110.193 111.793 113.393 1 | 93.7913 95.3913 96.9913 98.5912 100.191 101.791 103.391 ----------+-------------------------------------------------------------- ----------+-------------------------------------------------------------- | bydaded and bymomed | ----------------------------- 7 ----------------------------- black | 1 2 3 4 5 6 7 ----------+-------------------------------------------------------------- 0 | 106.074 107.673 109.273 110.873 112.473 114.073 115.673 1 | 96.0716 97.6716 99.2716 100.872 102.472 104.071 105.671 ----------+-------------------------------------------------------------- bymomed bydaded byincome black hispanic pctlunch x= 3 7 200 1 1 87.5 . . ** check that it handles unusual category values . use gsstestdata.dta, clear . qui mlogit ngchilds age educ lesbian liberal . prtab lesbian liberal, outcome(78) mlogit: Predicted probabilities of outcome 78 for ngchilds ----------+------------------------------------------------------- | liberal lesbian | 0 1 2 3 4 5 6 ----------+------------------------------------------------------- 0 | 0.3713 0.3438 0.3171 0.2913 0.2667 0.2432 0.2210 1 | 0.2969 0.2703 0.2450 0.2211 0.1989 0.1781 0.1590 ----------+------------------------------------------------------- age educ lesbian liberal x= 45.007947 13.363576 .02450331 2.8768212 . . log close