knitr::opts_chunk$set(echo = TRUE)
source("R/stanmodels.R")
source("R/utils.R")
source("R/amomoStan.R")
source("R/flumomoStan.R")
source("R/tools.R")
source("R/datatools.R")

momoStan background

Package to do bayesian version of the EuroMoMo and FluMoMo algorithms euromomo.eu.

The idea is to extend the models using the Stan probabilistic programming language. The system is a very flexible tool for doing bayesian analysis. It supports large variety of statistical models, is extensible and has large and active developer aand user communities.

More detailed examples are in the file testing.R.

Examples

First load a small dataset

data("fimomodata")
smalldata<-fixMomoData(keep="All")

Simple model

This will take some time:

amomo<-amomoStan(smalldata,byvar="age",popvar="pop",penalties=c(0,0,1))

etc ...



thl-mjv/momoStan documentation built on May 3, 2019, 2:57 p.m.