I'm running Stata 15.1 on a Mac OS and working with cross-sectional survey data. I'm trying to model a binary dependant variable that is skewed towards 0:
Code:
(Q72_4) Freq. Percent Cum. 0 782 87.96 87.96 1 107 12.04 100.00 Total 889 100.00
Code:
No variation in predicted dependent variable! All values are 0. Proportion Correctly Predicted: . Proportion Modal Category: .879 Proportional Reduction in Error: .
Here is some sample data (OPPOSE=outcome variable):
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte OPPOSE float(emo1 emo2 emo3) 0 .10650627 .2441399 .8703923 0 .25948995 .47626185 .3353544 1 -1.521572 -1.6878242 -1.7039795 1 -.1870226 1.237926 -.14541557 0 -1.0740036 -.4323002 -1.2697593 0 -1.969772 -1.864338 -1.8047973 0 .783338 -.7853283 .3353544 0 .3202551 1.0614119 .6342382 0 -.4728201 -.4323002 -.19968356 0 1.266314 .7231919 .6102579 0 -2.1520674 -1.864338 -1.8047973 0 1.266314 1.646562 1.3046124 0 1.266314 1.646562 1.40543 0 .4677745 -.12976238 .6342382 0 -.10195572 -.19411203 .1732176 0 -2.1520674 -1.864338 -1.8047973 0 .18761875 .49106985 .3353544 0 -2.1520674 -1.864338 -1.8047973 0 -.020665834 .4145877 -.5324245 0 -.1627209 -1.279188 .3353544 0 -1.3740525 -1.3704784 -1.669461 0 -1.7298566 -1.864338 -1.8047973 0 1.205549 1.0614119 .8703923 0 1.1447837 .5911017 -.19968356 0 1.0840183 .5614857 1.3046124 0 -.4942232 -.6236222 .09496938 0 -1.582337 -1.279188 -1.2697593 0 .3816518 1.0614119 -1.1301922 0 .3975907 .3849717 .4671213 0 -.58661914 -1.279188 -1.2697593 0 1.266314 .6467097 1.3046124 0 .12685356 -.5235904 -1.8047973 1 .3975907 -.4174923 -.9927792 0 -2.1520674 -.10888814 -1.5101444 0 -2.1520674 -1.864338 -1.8047973 0 .06608835 .47626185 .6300073 0 1.266314 .9849297 1.40543 0 -1.648744 -1.217514 -1.8047973 0 -1.969772 -1.864338 -1.8047973 0 .5142882 .47626185 .3353544 0 1.205549 1.0614119 1.0684583 0 -.671686 -1.279188 .4706907 0 -2.1520674 -1.864338 -1.8047973 0 -1.3281703 -1.279188 -.3858005 0 .9253931 .8997058 .9288911 1 -1.2060086 -1.279188 -1.2697593 1 .442417 .0528179 -.4400685 0 -1.3170644 -1.279188 -.24623333 0 -.8043224 -.4174923 -1.8047973 0 .6965838 1.646562 .763267 0 -1.5607567 -1.279188 -1.3705772 0 -.4428767 -.10888814 -.19968356 0 -.7976248 -1.279188 -.6917411 0 .12685356 -.10888814 .3353544 0 -2.004548 -1.864338 -1.8047973 0 -2.004548 -.1732378 -1.8047973 0 .7889796 .8997058 .7032754 0 1.266314 1.646562 1.40543 0 -2.004548 -1.864338 -1.8047973 0 .5031822 .2997478 .47492155 0 .416428 .8997058 1.265863 0 .4070093 -.5383984 .4706907 0 .9861583 .47626185 .8703923 0 -1.7149736 -1.864338 -1.8047973 0 -.1627209 .22933194 .09496938 0 -1.639957 -1.864338 -1.8047973 0 .26495424 -.4323002 -.28573206 0 -.4428767 -.27059418 -.57963574 0 .8441032 1.3231498 .6300073 0 -1.582337 -1.279188 -1.2697593 0 .3667688 -.09408017 .7695745 0 -.0003185525 -.7001044 -1.2697593 0 -2.0913024 -.9618424 -.7812713 0 .22471373 1.0614119 .7110757 0 -.10195572 .6527759 .369873 0 .3202551 .3997797 1.0684583 1 1.1187947 .5614857 1.2700938 0 -.6867464 -1.864338 -1.8047973 0 .9048684 -.10888814 .6687568 0 .3761875 -.27059418 -.44073 0 1.0840183 -1.2643802 .4438903 0 .5639474 .8848979 -.1954527 0 1.266314 .1380418 1.3046124 0 -1.3116 -.10888814 -.9081458 0 -.5903961 -.6236222 -.5408862 0 .3202551 -1.279188 1.2037947 1 -.33182085 -.30021015 -1.2697593 0 .4937635 -1.4557022 -.5316753 0 .39212635 -.008856281 -1.0138559 0 .06608835 -.10888814 .3353544 0 -.6811046 .47626185 -.4210684 0 -1.4132372 -1.7026322 -1.3268476 0 -.06654805 .22933194 .2345366 0 .06608835 .47626185 .064681634 0 .5750534 .47626185 .8703923 0 -.2748326 .6527759 .16823746 0 -1.1973988 -1.864338 -1.2465284 0 .6965838 .3293638 .3311235 1 .8292202 .8848979 .8703923 1 1.266314 1.646562 1.3046124 end
0 Response to Precalc following logit: 'No variation in predicted dependent variable! All values are 0.'
Post a Comment