# NOT RUN {
data(greece) # Use example surveillance data from Greece
m <- with(greece, fitFluMoDL(deaths = daily$deaths,
temp = daily$temp, dates = daily$date,
proxyH1 = weekly$ILI * weekly$ppH1,
proxyH3 = weekly$ILI * weekly$ppH3,
proxyB = weekly$ILI * weekly$ppB,
yearweek = weekly$yearweek))
m
# Plot the association between A(H1N1)pdm09 activity and mortality
# and the overall temperature-mortality association:
plot(m$pred$proxyH1, "overall")
plot(m$pred$temp, "overall")
# Add the Minimum Mortality Point to the plot:
abline(v=m$MMP)
# Check the lag-response dimension for the A(H1N1)pdm09 - mortality
# association, for all proxy values, and for an indicative value of 30.
plot(m$pred$proxyH1) # Produces a 3D plot, see ?plot.crosspred
plot(m$pred$proxyH1, var=30)
# Have a look at the data associated with this FluMoDL:
str(m$data)
tail(m$data)
# }
Run the code above in your browser using DataLab