Displaying 1 result from an estimated 1 matches for "timesinda".
2006 Feb 01
1
glm-logistic on discrete-time methods with individual and aggregated data
...), rep(2,4))
datiAGG <- as.data.frame(cbind(timesAGG, statusAGG, weightAGG))
datiAGG$timesAGG <- as.factor(datiAGG$timesAGG)
coef(glm(statusIND ~ timesIND, family=binomial, data=datiIND))
coef(glm(statusAGG ~ timesAGG, family=binomial, data=datiAGG,
weights=weightAGG))
# not working one
timesINDa <- c(rep(1:4, 4), rep(1:2,2), rep(1:3 , 2), rep(1:4,
2))
statusINDa <- c(rep(0 ,16), rep(0:1,2), rep(c(0,0,1), 2),
rep(c(0,0,0,1),2))
datiINDa <- as.data.frame(cbind(timesINDa, statusINDa))
datiINDa$timesINDa <- as.factor(datiINDa$timesINDa)
timesAGGa <- c( 1:4, 1:2,...