[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is Logistic Regression Calculated Dependent Variable Average Suppose
From: |
John Darrington |
Subject: |
Re: Is Logistic Regression Calculated Dependent Variable Average Supposed to Equal to the Actual Average? |
Date: |
Wed, 24 Mar 2021 21:03:24 +0100 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
The /SAVE subcommand for LOGISTIC REGRESSION has not yet been implemented.
J'
On Tue, Mar 23, 2021 at 05:39:55PM +0000, Ricardo Mejias wrote:
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))).
[cid:52ab50a1-46fe-4f4d-a281-bbba7e2cc677]
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 used logistic 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.