$ operator is invalid for atomic vectors in the logistic regression analysis

I am doing a logistic regression analysis with an ordinal predictor variable with 3 subcategories. I fitted the model as:

csc3.model<-(glm(Churn~csc3, family="binomial"))
summary(csc3.model)

Where Churn is the dependent variable and csc3 is the ordinal variable. Then, I want to calculate the confidence intervals for the coefficients by using:

confint(csc3)

I receive the error message: "$ operator is invalid for atomic vectors". The logistic model "csc3" is recognized as a vector in R. I have searched the literature, and I do not find the way to fix this issue. Please, advice. Thanks.

Shouldn't the call be

confint(csc3.model)
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

Yes, you are absolutely right. I missed it. The issue is solved. Thank you!