简体   繁体   English

挖泥机的奇怪错误:MuMIn

[英]Strange error with Dredge: MuMIn

I am wondering whether anyone could help me trouble shoot this error from a task with dredge package: 我想知道是否有人可以帮我解决从疏通包任务中解决此错误的问题:

   Fixed term is "(Intercept)"
 |============================================================================                                                          
 63%
Error in while ((iComb <- iComb + 1L) < ncomb) { : 
missing value where TRUE/FALSE needed
In addition: Warning message:
In iComb + 1L : NAs produced by integer overflow

Timing stopped at: 90799.82 18.545 90796.9 
> 

I see that it probably has to do with my TRUE/FALSE subset matrix but I have double checked to make sure the matrix contains all terms returned by calling getAllTerms function. 我看到这可能与我的TRUE / FALSE子集矩阵有关,但是我已经仔细检查以确保该矩阵包含通过调用getAllTerms函数返回的所有术语。

Here is how I am calling dredre 这就是我给德雷德打电话的方式

#exclude only pairs of variables having cor. coefficient r > 0.2
smat <- abs(cor(predictors)) <= .2
smat[!lower.tri(smat)] <- NA

#set global model
forml<-glm(SEVERITY_CODE ~(autocorr+CummDHM_retro + CummDHM_sat +     DHM_retro_cnt + DHM_sat_cnt + diff_events_all + diff_events_periodmax + duration_events_neg + duration_events_pos + events_neg_all + events_neg_periodmax + events_pos_all + events_pos_periodmax + maxpower_events_neg + maxpower_events_neg_norm + maxpower_events_pos + maxpower_events_pos_norm + maxpower_neg + maxpower_neg_norm + maxpower_pos + maxpower_pos_norm + NSE + pct_coi_periodmax + pct_ispos_signif + pct_seasonal + pct_signif_periodmax + period_events_neg + period_events_pos + period_max + var_seasonal + varSST ), family=binomial(link=logit),  data=all.data)

options(na.action = "na.fail") 

system.time(modelmix <- dredge(forml, subset = smat, trace=2, evaluate=FALSE,     extra = c("R^2", F = function(x)
summary(x)$fstatistic[[1]]) ))

I don't think that "Fixed term is "(Intercept)"" is actually an error message. 我认为“固定术语为“(拦截)””实际上不是错误消息。 You just have to be patient as dredge runs through all model combinations. 您只需耐心等待所有模型组合中的挖泥工作。 I had this same message pop up when I used dredge, but it still appeared to work. 使用挖泥机时,我会弹出相同的消息,但它似乎仍然有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM