Displaying 1 result from an estimated 1 matches for "oservatori".
Did you mean:
observatori
2011 Jun 01
0
bayesglm with weights
Dear list,
I have troubles with using Bayesian logistic model with count data in bayesglm.
If I consider the following artificial data set, with a response y and a covariate x, in a form of row data (a) and count (b) :
a<-data.frame(y=c(rep(1,10),rep(0,6)),x=c(rep(5,6),rep(4,4),rep(5,1),rep(4,5)))
a$un<-1
b<-aggregate(a$un,list(y=a$y,x=a$x),sum)
names(b)[3]<-"w"
A