### POISSON data with weights: thai_cohort
data(thai_cohort)
m.thai <- mixalg(obs="counts", weights="frequency",
family="poisson", data=thai_cohort,
acc = 0.00003)
if (FALSE) boot <- mixalg.boot(m.thai, nboot=1000) #may take a few minutes
### POISSON data with observed and expected data: hepab
data(hepab)
mix <- mixalg(obs="observations",pop.at.risk="expected",family= "poisson",data=hepab)
if (FALSE) boot <- mixalg.boot(mix, nboot=250) #may take some time
table(boot$numk.boot)
Run the code above in your browser using DataLab