Description Usage Arguments Details Value See Also Examples
View source: R/data_functions.R
Output spatial pixels data frame of lgcp predictions
1 2 3 4 5 6 7 8 9 |
lg |
An lgcpReal object, output from a call to |
covariates |
A |
per.days |
Integer, the number of person-days to use for incidence, default is 10,000. |
change.lag |
If not NULL, then plots are created of the change in outputs compared to this number of periods prior. |
relative |
A logical value indicating whether the comparisons (if change.lag set) should be relative (default), i.e. incidence rate ratios and ratios of relative risks, or absolute. |
msq |
Integer, the denominator of the population density, default is hectares (population per 10,000m^2) |
rr_lim |
Integer, for plotting the relative risk, the maximum value of the colour scale. Useful when comparing multiple plots to put colour gradient on same scale. |
This function generates a spatial pixels data frame with the output from lgcp.
A codespatialPolygonsDataFrame
aggregator_data, plot_hotspot
1 2 3 4 5 6 7 8 9 10 | data(dat,square,square_pop)
lg1 <- lgcp(data=dat,
pop.var = c("popdens"),
boundary=square,
covariates=square_pop,
cellwidth=0.1,
laglength = 7,
mala.pars=c(200,100,1),
nchains=2)
plot_data(lg1,square_pop)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.