search for: bcsse

Displaying 1 result from an estimated 1 matches for "bcsse".

Did you mean: csse
2008 Apr 12
2
Predict Function
...dicted", value = c(0.332822934960197, : 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...