1 year ago

#295343

test-img

Nicki

Why do I keep getting this error when I run the dredge function in R: "Error in MuMIn::dredge(global.model = ols) : result is empty"?

I keep getting this error when I run the dredge function in R: "Error in MuMIn::dredge(global.model = ols) : result is empty", and I'm not sure What is wrong. Here is my coding:R coding

FYI I didn't include all of the formula (it got cut off in the image).

library(MuMIn)
library(spatialreg)
library(spdep)
data = RHDVdatasetMarch
names(data)
?MuMIn::dredge
#first "global" model
ols = stats::lm(formula = DV3composite~classify3+classify8+house2+house5+travel+Male+prefernot+age+school+compositeconcern40+compositeimpact128+totalknowledgescore+compositerisk41+compositeprevent44+compositegov113+composite42factor1+composite42factor2, data = RHDVdatasetMarch)
summary(ols)
##dredge to confirm variable and best model
options(na.action = "na.fail")
MuMIn::dredge(global.model = ols)

r

mumin

0 Answers

Your Answer

Accepted video resources