0
$\begingroup$

I want to run logliner analysis on SPSS Statistics 25 but I have more than 10 variables.= 1 outcome variable and 11 predictors/factors. The big number of factor variables can be explained by the fact that a big part of them are dummy variables from a multiple response question. Is there an alternative way to run the analysis on SPSS but not another software, because for the time being SPSS returns me an error when I select all the variable and I try to transfer them on the right side to run the analysis.

$\endgroup$
0

1 Answer 1

0
$\begingroup$

Having more 11 regressors is not a problem unless you have fewer than 11 observations. My guess is that you are including all dummy variables on the right-hand side, leading to a singular matrix error. This is referred to as the 'dummy variable trap'. The problem is that you need to leave out one category in a set of dummy variables that exhaust all possible categories.

For example, if the two possible values of gender are male and female, you cannot include a dummy of each on the right-hand side. Similarly, if you had a dummy for each state in panel data, you could only include 49 dummies. The reason is that if you do not exclude one dummy (used as the 'reference' category), then columns of $X$ which correspond to the exhaustive set of dummies are not linearly independent, meaning $(X'X)$ is not invertible and therefore $\hat{\beta}=(X'X)^{-1}(X'Y)$ cannot be calculated.

Also, please make sure you are not taking logs of categorical variables.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.