I would be eager to know the difference between commands for fractional logistic regression. When I run "fracreg" or "glm family(binomial) link(logit)" in Stata 14.2, the coefficient size remains the same but several other values like number of observations or confidence intervals change.
You will find below the models and an example of the dependent variable data.
1) Array
2) Array
The dependent variable is called "dvfrac_year" and takes form of fractions (originally 0,1 values) and is weigted in the models [fweight=cnt_total_year].
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float dvfrac_year 0 .08333334 1 .75 .75 1 .9333333 .8 0 .14285715 .25 .16666667 0 .4285714 0 1 .3333333 0 .5 .375 .9230769 .8666667 1 1 .125 0 0 .4285714 1 0 .2 .8888889 1 1 .2 1 1 1 .25 1 .05 .44444445 .2857143 0 0 0 .3333333 .071428575 1 .8888889 1 .8 .875 .8333333 1 .75 .3333333 0 0 1 .6666667 1 .3636364 .3 0 1 .8 .25 0 0 0 .968254 .9565217 .8333333 .875 .3214286 .125 .15384616 .2857143 0 .06896552 .25 .6666667 .8666667 1 1 0 0 0 .8 .7692308 .27272728 .3 .5 .4285714 1 1 1 .6666667 1 end
0 Response to Difference between "fracreg" and "glm family(binomial) link(logit)"
Post a Comment