I am running logistic regression, my dependent variable is binomial (HeardTB "Yes", "No"), but i got only one response ("Yes"). I want to run logistics regression with independent variables, (Age, Sex, Education, Experience, Occupation. P values are not promising and Odd Ratio gives an error. See the attached.
hailogits <- glm(HeardTB ~ Sex + Age + Marital + Education + Occupation + Experience, data = Rhelp, family = "binomial")
summary(hailogits)
you can not fit any meaningful model where there is no variation in the dependent variable.
There is no signal to detect, there is no information here.
Here is a perfect model that can predict HeardTB.... predict that HeardTB is Yes.
Did you collect this data, or where you given it ?
If you are collecting data for a scientific study, I think you need to rethink how you've gone about that, as you will require observations of HeardTB (your subject of interest) to sometimes be "No".
Otherwise you simply aren't studying anything.