I would like to apply a fractional logistic regression using the command "fracreg" using Stata 14.2. However, I do not understand how the fracreg command works with dependent variables stored as fractions.
My dependent variable is called "dvfrac" and I created it using the following command where "cnt_infavor" stands for the number of Y values==1 and "cnt_total" is a count of all Y values (zeros and ones) by an actor.
Code:
gen dvfrac = cnt_infavor / cnt_total
Array
Does "fracreg" work only with the final value of a fraction (e.g. 2nd row .030303) ? Or is there any type of weighting in place by the frequencies or percentages?
I am asking because from a theoretical point of view, it makes difference for my data if the fraction value 1 is based on 1 observation or is a result of 100 observations (e.g. 100 observations with y-values==1)
Thanks a lot!
All the best,
Pavel
0 Response to Understanding command "fracreg" (fractional logistic regression)
Post a Comment