Page 1 of 1

"contrast can be applied only to factors with 2 or more levels" message

Posted: Sat Jun 17, 2023 8:03 am
by drfuad
I was trying to conduct a binomial logistic regression with two predictor variables. All of my variables have 2 categories. However, when it run the model, the following error message pops up. I do have other variables that runs ok. But whenever I add these two variables, the following message is shown.
What should I do?
Regards.
P.S.: the CS variable contains a lot of (almost 50%) missing values.
Capture.JPG
Capture.JPG (75.42 KiB) Viewed 5263 times

Re: "contrast can be applied only to factors with 2 or more levels" message

Posted: Sat Jun 17, 2023 11:19 am
by MAgojam
Hi @drfuad,
you have a cross between "Institutional Delivery" and "CS", with No data.
Take a look at the screenshot.
ScreenShot_20230617130640.jpeg
ScreenShot_20230617130640.jpeg (226.52 KiB) Viewed 5252 times
Cheers,
Maurizio