search for: yrs_at_risk

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

2009 Oct 09
1
svy / weighted regression
...land","Norway","Sweden") listw <- c(1,2,1,1,1,1,1,1) listd <- c(0,0,0,0,1000,1000,1000,2000) listt <- c(750000,500000,900000,1900000,5000,5000,5000,10000) list.cwdt <- c(listc, listw, listd, listt) country <- data.frame(country=listc,weight=listw,deaths=listd,yrs_at_risk=listt) # running a frequency weighted regression to get the correct point estimates for comparison glm <- glm(deaths ~ country + offset(log(yrs_at_risk)), weights=weight, data=country, family=poisson()) summary(glm) regTermTest(glm, ~ country) # running survey weighted regression svy <- svy...