Hell guys,
I am having a strange problem. I am working on a project that needs to perform logistic regression. I went Statistics > Binary Outcome > Logistic Regression to call up the window to do the logistic regression. When I try to select the dependent variable or independent variables in that window only 3 variables show in the selection despite there are 8 variables in the data set. I looked at the variable type and looks like the the ones recognized by the logistic regression are the ones with byte as variable type. All variables not recognized have string as variable type.
So I try to changes the variables type from string to byte to get those variables recognized. The command recast looks like the one that I need with a simple syntax so I entered:
recast byte Race
The return:
Race: byte invalid
This problem continues to happen all variables. Please help. Thank you.
I am having a strange problem. I am working on a project that needs to perform logistic regression. I went Statistics > Binary Outcome > Logistic Regression to call up the window to do the logistic regression. When I try to select the dependent variable or independent variables in that window only 3 variables show in the selection despite there are 8 variables in the data set. I looked at the variable type and looks like the the ones recognized by the logistic regression are the ones with byte as variable type. All variables not recognized have string as variable type.
So I try to changes the variables type from string to byte to get those variables recognized. The command recast looks like the one that I need with a simple syntax so I entered:
recast byte Race
The return:
Race: byte invalid
This problem continues to happen all variables. Please help. Thank you.
Comment