When I run a regression on a data set:
当我对数据集进行回归时:
ord_reg<- clm(as.factor(Resp)~log10(Dose), data=dataframe, link="probit")
ord_reg < - clm(as.factor(职责)~ log10(剂量),数据= dataframe链接= 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").
原因是什么?注意,在回归中被调用的数据集的标题与数据集的标题相同(即“剂量”和“职责”)。
1 个解决方案
#1
3
Look at summary(dataframe)
, as well as summary(log10(dataframe$Dose))
.
查看summary(dataframe)和summary(log10(dataframe$Dose))。
You may see some NA/NaN reported, possibly because of negative values being given to log10()
.
您可能会看到一些NA/NaN报告,可能是因为给log10()的值为负值。
#1
3
Look at summary(dataframe)
, as well as summary(log10(dataframe$Dose))
.
查看summary(dataframe)和summary(log10(dataframe$Dose))。
You may see some NA/NaN reported, possibly because of negative values being given to log10()
.
您可能会看到一些NA/NaN报告,可能是因为给log10()的值为负值。