Reputation: 572
When I run a regression on a data set:
ord_reg<- clm(as.factor(Resp)~log10(Dose), data=dataframe, link="probit")
I get the following error message:
Error in qr.default(X, tol = tol, LAPACK = FALSE) :
NA/NaN/Inf in foreign function call (arg 1)
What is the reason for this? Note that the titles of the data set being called in the regression are the same as that of the data set (i.e. "Dose" and "Resp").
Upvotes: 4
Views: 7024
Reputation: 368181
Look at summary(dataframe)
, as well as summary(log10(dataframe$Dose))
.
You may see some NA/NaN reported, possibly because of negative values being given to log10()
.
Upvotes: 7