Displaying 1 result from an estimated 1 matches for "countlaw".
Did you mean:
counta
2011 Apr 20
1
Error in dimnames(x) for Poisson EWMA model
..."times"
[7] "hmajparty" "smajparty" "pres"
It seems to me that the NULL value here is causing the problem but I can't figure out (1) why the null value is showing up and (2) how to get rid of it. Background code is as follows:
cr.pois<- glm(countlaw ~ mip + div + nom + unity + mood + times + hmajparty + smajparty + pres, family = poisson)
summary(cr.pois)
init <- coef(cr.pois)
x<- cbind(mip,div,nom,unity,mood,times,hmajparty,smajparty,pres)
cr.PEWMA<- Pewma(y=countlaw,x=as.matrix(x),init.param=c(0.8,init[2:length(init)]))
Which re...