pspp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is Logistic Regression Calculated Dependent Variable Average Supposed to


From: Ricardo Mejias
Subject: Is Logistic Regression Calculated Dependent Variable Average Supposed to Equal to the Actual Average?
Date: Tue, 23 Mar 2021 17:39:55 +0000

Unlike for linear OLS regression, PSPP logistic regression does not produce a calculated dependent variable, which I need for my project. When I use the coefficients of the logistic regression to do the calculation on the same data in this way:


COMPUTE CalcDep = 1/(1 + EXP(-(-5.844816350213-3.733929982147*Party20210112Rep-3.429046437566*Party20210112Dem-3.537704000024*DemNpaLpf-3.867034376711*RepNpaLpf+0.92585743209*WhiteNotHisp-0.309549809307*Hispanic-0.242244899198*BlackNotHisp+0.699661534759*Genders -0.002047977071*AgeInMonths-0.000010353254*PopulationPerSqrMileN-0.00000071631*AvgHouseValuePerPersonN+0.000001170117*AverageIncomePerPersonN))).


the average of the values of the calculated dependent variable (CalcDep) is much different than the average of the actual dependent variable (Depen20210209LPF), unlike in linear OLS regression where these averages or totals are always the same. I think that when I uselogistic regression in SAS, it was the same way.


I have searched the internet extensively to find whether logistic calculated and actual dependent variables should have the same average. But despite the large availability of good material on logistic regression, I could not find anything on this subject.


Do you have an answer to this question?


And could that answer be related to why there is no feature in PSPP to show the calculated dependent variable in logistic regression?


This request does not require samples of data and code since the answer to it does not depend on them.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]