Question

In: Statistics and Probability

What does it mean when you get an error message running SPSS forbinary linear regression...

What does it mean when you get an error message running SPSS for binary linear regression that states the dependent variable has more than two non-missing values. For logistic regression, the dependent variable value must assume exactly two values on the cases being processed. What do I need to do to fix this issue?

Solutions

Expert Solution

You need to check the missing values in the dependent variable. Since your dependent variable has two categories you will have to fill the missing values with only those two values but it is not an easy task. I suggest if the number of rows in your data set is large enough that if you remove few values then the logistic model would not get affected then remove the rows that have missing dependent values. Now run logistic regression on this data. If the data set has a low number of rows then the simplest method is creating one more category with NA. Therefore, you will have three categories instead of 2 categories. Now run a multiple logistic regression in SPSS and discard the results for the NA category.

There are some other ways as well but they are more complex because they involve creating predictive models to predict the missing values then they are imputed and used to create the model along with the original data. In this answer, I have explained the simplest method, which is generally used.


Related Solutions

Linear regression Hello What does it mean that the residuals in linear regression is normal distributed?...
Linear regression Hello What does it mean that the residuals in linear regression is normal distributed? Why is it only the residuals that is, and not the "raw" data? And why do we want our residuals to be normal?
6. The error term in linear regression models is assumed: (A) having the mean of zero...
6. The error term in linear regression models is assumed: (A) having the mean of zero (B) having the variance of zero (C) being normally distributed with a positive mean (D) being normally distributed with a negative mean 7.How should β k in the general multiple regression model be interpreted? (A) The number of units of change in the expected value of Y for a 1 unit increase in X k when all remaining variables are unchanged. (B) The magnitude...
I have the following python code. I get the following message when running it using a...
I have the following python code. I get the following message when running it using a test script which I cannot send here: while textstring[iterator].isspace(): # loop until we get other than space character IndexError: string index out of range. Please find out why and correct the code. def createWords(textstrings): createdWords = [] # empty list for textstring in textstrings: # iterate through each string in trxtstrings iterator = 0 begin = iterator # new begin variable while (iterator <...
What does it mean when it is said that the United States is running a trade...
What does it mean when it is said that the United States is running a trade deficit? What impact will a trade deficit have on interest rates?
In a normal simple linear regression model you are given that the variance of the error...
In a normal simple linear regression model you are given that the variance of the error term is 4. Four observations are taken, in which the X values are X=-2,1,2,3. Calculate the variance in the estimate for the slope coefficient.
When browsing a web site, we see the following message. What does it mean that the...
When browsing a web site, we see the following message. What does it mean that the certificate is not issued by a trusted CA? What is considered as a trusted CA? There is a problem with this website’s security certificate. The security certificate presented by this website was not issued by a trusted certificate authority.
What does sampling error mean?
What does sampling error mean?
What is the purpose of Linear Regression? How does it differ from basic correlation? When is...
What is the purpose of Linear Regression? How does it differ from basic correlation? When is it appropriate for use? Describe a study for which you would use Linear Regression for statistical analysis.
In C++ what does it mean when it says: "error: stray '\226' inprogram"
In C++ what does it mean when it says: "error: stray '\226' in program"
What does it mean when a graph has large standard error bars?
What does it mean when a graph has large standard error bars?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT