i’m using the rms package and the lrm fucntion. When I try to use summary(fit), I keep getting the following error:
Error in reformulate(attr(termobj, “term.labels”)[-dropx], response = if (keep.response) termobj[[2L]], :
‘termlabels’ must be a character vector of length at least one
In addition: Warning message:
Using formula(x) is deprecated when x is a character vector of length > 1.
Consider formula(paste(x, collapse = ” “)) instead.
my datadist is defined and working, anyone know what could be causing this?
I’ve tried just about everything. Datadist is working fine, I have no missing data. All my continuous and categorical variables are working as they should.
fit_simple <- lrm(ninety_alive ~ + Population + Age + Fiscal_Year_cats, data = data)
> summary(fit_simple)
Error in reformulate(attr(termobj, "term.labels")[-dropx], response = if (keep.response) termobj[[2L]], :
'termlabels' must be a character vector of length at least one
In addition: Warning message:
Using formula(x) is deprecated when x is a character vector of length > 1.
Consider formula(paste(x, collapse = " ")) instead.
Matthew Love is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.