请帮助!通过将vif用于多重共线性会出现以下错误:
vif(M1) as.vector(y)-Mean(y)中的错误:二进制运算符的非数字参数
此外:警告消息:
在 var texture: MTLTexture? = nil
// In iOS 10 the origin was changed.
let textureLoaderOptions: [MTKTextureLoader.Option: Any]
if #available(iOS 10.0, *) {
let origin = MTKTextureLoader.Origin.bottomLeft.rawValue
textureLoaderOptions = [MTKTextureLoader.Option.origin : origin]
} else {
textureLoaderOptions = [:]
}
if let textureURL = Bundle.main.url(forResource: imageName, withExtension: nil, subdirectory: "Images") {
do {
texture = try textureLoader.newTexture(URL: textureURL, options: textureLoaderOptions)
} catch {
print("Texture not created.")
}
}
return texture
}
中:参数不是数字或逻辑:返回NA
我的脚本:
mean.default(y)
答案 0 :(得分:0)
您应该执行以下步骤:
install.packages("car")
library(car)
vif(M1)
对我有用