pspp-users
[Top][All Lists]
Advanced

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

Re: NaN in Logistic Regression


From: John Darrington
Subject: Re: NaN in Logistic Regression
Date: Tue, 23 Mar 2021 08:09:02 +0100
User-agent: Mutt/1.10.1 (2018-07-13)

On Sun, Mar 21, 2021 at 06:45:59PM +0000, Ricardo Mejias wrote:
     When running a logistic regression, I found that, under certain situations 
I get NaN symbols where most of the output numbers usually appear.
     
     
     The situation occurs when the independent variable Party20210112Npa is 
used with 13 other variables.
     
     It does not occur when used by itself or with a smaller number of the same 
other variables.
     
     
     The problem never happens when I am not using the variable Party20210112Npa
     
     
     A Description report does not show any missing values of any fields in 
this data.
     
     
     I suspect that this is a problem caused by the iteration process. I know 
that iterative solutions sometimes “get stuck” and cannot provide an answer.
     
     
     Do you agree that this is an iteration problem and if, so do you have any 
suggestions regarding how to avoid it?
     
     
     I can’t send you the data set over email due to its size. However, I am 
not looking for an actual solution to this problem from you, just for a general 
suggestion regarding how to avoid this kind of problem.


If the iterations fail to converge you will get a warning message about this.

But I think it is unlikely to happen unless there is something wrong with the
data.  For example if one of the predictor variables is not dichotomous then
it can cause this sort of problem.

If you compress your data and load it onto a public server, then perhaps
somebody can take a look at it.  But do include the complete syntax of the
command you are running.



reply via email to

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