I have produced a gtsummary table from my dataset and I would like assistance on how to export and save it
Hello DavoWW,
Thank you very much and I will check.
Hey ,I am also strugglng to reproduce the table of my logistic regression,
Here is my code and the message error.
Fit logistic regression model
logistic_model1 <- glm(RBD_Wuhan_Class ~ LCTN_HF + Gender + Age_Yrs + Age_Groups + AFI_PRESENTATION +
-
education + Religion + e_language + e_tribe,
-
family = "binomial", data = NGSICA_data_clean)
Error in contrasts<-
(*tmp*
, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels
Well, that is a different question.
Firstly, I'd check that all your model components (factors) have 2 or more levels.
Ok,how can You help me,
I checked all my factors ,yes they do have 2 or more levels!
But I continue to see the same error.
Hi @Enatha
Its hard for us to help further unless you can provide a Minimal Reproducible Example ( a "reprex") which includes the data or a subset of it (i.e. NGSICA_data_clean
). See the posting guide for more information on how to construct a good reprex.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.