मुझे बैयसग्ल्म का उपयोग करते समय पूर्वानुमान कार्य के साथ कुछ समस्याएं आ रही हैं। मैंने कुछ पोस्ट पढ़ी हैं जो कहते हैं कि यह समस्या उत्पन्न हो सकती है जब नमूना डेटा के बाहर नमूना डेटा की तुलना में अधिक स्तर होते हैं, लेकिन मैं फिट और पूर्वानुमान कार्यों के लिए एक ही डेटा का उपयोग कर रहा हूं। पूर्वानुमान नियमित ग्लैम के साथ ठीक काम करता है, लेकिन बेयस्ग्लम के साथ नहीं। उदाहरण:बेयस भविष्यवाणी करते हैं, सीमाओं से सब्सक्राइब
control <- y ~ x1 + x2
# this works fine:
glmObject <- glm(control, myData, family = binomial())
predicted1 <- predict.glm(glmObject , myData, type = "response")
# this gives an error:
bayesglmObject <- bayesglm(control, myData, family = binomial())
predicted2 <- predict.bayesglm(bayesglmObject , myData, type = "response")
Error in X[, piv, drop = FALSE] : subscript out of bounds
# Edit... I just discovered this works.
# Should I be concerned about using these results?
# Not sure why is fails when I specify the dataset
predicted3 <- predict(bayesglmObject, type = "response")
किसी बेयस्ग्लम ऑब्जेक्ट के साथ भविष्यवाणी करने का तरीका नहीं पता लगाया जा सकता है। कोई विचार? धन्यवाद!