当使用 R 包MuMIn (v1.9.5) 和命令dredge
时,beta = TRUE
开关不再按预期工作。
# load Cement data set with MuMIn package
data(Cement)
# build global model
fmd <- lm(y ~ X1 + X2 + X3 + X4, data = Cement)
# dredge global model without returning standardized coefficients (default);
# WORKING
ms1 <- dredge(fmd)
# dredge global model and return standardized coefficients;
# NOT WORKING
ms1 <- dredge(fmd, beta = TRUE)
后者返回:
Error in dimnames(ret) <- list(names(model$coefficients), c("Estimate", :
length of 'dimnames' [1] not equal to array extent
使用 R v3.0.0