bug-gnu-pspp
[Top][All Lists]
Advanced

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

PSPP-BUG: [bug #46749] logistic regression function having problems with


From: anonymous
Subject: PSPP-BUG: [bug #46749] logistic regression function having problems with categorical variables
Date: Tue, 22 Dec 2015 13:52:07 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

URL:
  <http://savannah.gnu.org/bugs/?46749>

                 Summary: logistic regression function having problems with
categorical variables
                 Project: PSPP
            Submitted by: None
            Submitted on: Tue 22 Dec 2015 01:52:06 PM UTC
                Category: None
                Severity: 5 - Average
                  Status: None
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
                  Effort: 0.00

    _______________________________________________________

Details:

short description: while doing the logistic regression, pspp completely
ignores "measure" of the variable. it is treating categorical variable as a
continuous variable leading to wrong results.

complete description:
1) for reporting this, i am using the example given in this SPSS tutorial-
http://www.ats.ucla.edu/stat/spss/dae/logit.htm
2) look at the example dataset - binary.sav
3) open the file.
4) it contains four variables. two nominal (admit and rank) and two scale (gre
and gpa)[visible in the "measure" of variable view].
5)go to: analyse -> regression-> logistic regression
6)select admit as the dependent variable and rank,gre and gpa as the
independent variable.


expected result: the output should look like this -
http://i.imgur.com/W5Q4lTI.png

actual result in pspp: http://i.imgur.com/IEyOUnO.png

7) possible reason: pspp ignores the measure indicator of the variable. it
treats rank as a continuous variable.

8) this is a long term problem and it exists since the function is available
in pspp. did not report it as was unable to confirm the expected result from
SPSS.

9) interestingly, if this file is imported in R and logistic regression
analysis done, expected result takes place.


pspp version: 

psppire 0.8.5 (problem present since logistic regression function added in
PSPP)

system information (uname -a):

Linux 4.2.0-21-generic #25~14.04.1-Ubuntu SMP Thu Dec 3 13:55:58 UTC 2015
x86_64 x86_64 x86_64 GNU/Linux




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 22 Dec 2015 01:52:06 PM UTC  Name: IEyOUnO.png  Size: 43kB   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=35837>
-------------------------------------------------------
Date: Tue 22 Dec 2015 01:52:06 PM UTC  Name: W5Q4lTI.png  Size: 29kB   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=35838>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46749>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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