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").
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()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With