RのMuMIn::dredge
関数から何らかのエラーが発生しており、解決方法がわかりません。私が起こっている理由を私は知らない、次のエラーを取得MuMIn :: Dredgeを使用すると、モデルが収束しない
options(na.action = "na.fail")
global.model<-lmer(yld.res ~ rain + brk+ act +
onset + wid + (1|state),data=dat,REML=FALSE)
stdz.model <- standardize(global.model,standardize.y = FALSE)
model.set <- dredge(stdz.model)
:
Hereは、私はグローバルモデルを構築し...
library(lme4)
library(MuMIn)
library(arm)
私のデータです。明確化のために、それぞれについてyear
に対してyld
の線形回帰から得られるyld.res
が残っている。応答としてyld
を使用すると、dredge
は正常に動作します。助けや助言をいただければ幸いです。
Fixed term is "(Intercept)"
Warning messages:
1: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
unable to evaluate scaled gradient
2: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
Model failed to converge: degenerate Hessian with 1 negative eigenvalues
3: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
unable to evaluate scaled gradient
4: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
Model failed to converge: degenerate Hessian with 1 negative eigenvalues
5: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
unable to evaluate scaled gradient
6: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
Model failed to converge: degenerate Hessian with 1 negative eigenvalues
7: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
unable to evaluate scaled gradient
8: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
Model failed to converge: degenerate Hessian with 1 negative eigenvalues
ああうわー!!そのような詳細な説明に感謝します。私はそれを将来使用する必要がある場合に備えてブックマークします。モデルがどのように機能しているかについては、たくさんの有用なものがあります。 – user53020