Displaying 1 result from an estimated 1 matches for "hsgradyr".
2008 Apr 12
2
Predict Function
...4960197,
:
replacement has 810 rows, data has 6
How can I resolve this problem so I can just predict values for the supplied
matrix(newdata1) instead of it trying to use my full dataset?
Here is the full code up to this point.
library(VGAM)
mlogit<- vglm(bcsse$Active~bcsse$Impinteg+bcsse$Hsgradyr,
family=multinomial(), na.action=na.pass)
summary(mlogit)
Impinteg<-c(1,2,3,4,5,6)
Hsgradyr<-c(mean(bcsse$Hsgradyr))
newdata1<-data.frame(Impinteg,Hsgradyr)
newdata1$predicted <- predict(mlogit,newdata=newdata1,type="response")
newdata1
I appreciate all help in advance!
--...