Rgeoprofile-package: Geographic Profiling in R

Description Details Author(s) References See Also Examples

Description

Create Geographic Profiles using point pattern data. The methods used are based on the Dirichlet Proccess Mixture Model. The package: sets the graphical parameters, uses Rgooglemaps to map the data points, creates a Bayesian mixture model and fits parameters with a MCMC, renders the posterior surface and diagnostic plots and finally outputs source information and statistics.

Details

Package: Rgeoprofile
Type: Package
Version: 1.1
Date: 2013-06-11
License: GPL-2 | GPL-3

This package runs the DPM mixture model. The package is composed of 8 core functions and 4 accessory functions. The core functions load in the data, set parameters of the model, generates the prior, runs the MCMC, produces maps and saves the results. They should be run in order:

1) LoadData(): Loads in data, extracts key information, must bre run first.

2) ModelParamters(): Sets model parameters, option to plot prior on parameter sigma

3) GraphicParamters(): Sets graphic parameters of maps and plots

4) CreateMaps(): Creates the prior surface on source location tau and plots the data on a Google map

5) RunMCMC(): Runs the bulk of the analysis using MCMC (a time intesive step)

6) ThinandAnalsye(): Thins the posterior samples and construcst the geoprofile (a time intesive step)

7) PlotGP(): Plots the data and overlays the geoprofile onto a Google map

8) reporthitscores(): OPTIONAL if source data is imported, calculates the hit scores of potential sources.

See indvidual descriptions for the use of these functions.

Author(s)

M.D. Stevenson and R. Verity

Maintainer: <m.stevenson@qmul.ac.uk>

References

Stevenson. M.D., and Verity, R. et al. (2013) Spatial targeting of infectious disease control:identifying multiple, unknown sources. MEE [In REVIEW]

See Also

Geographic Profiling in Biology
http://evolve.sbcs.qmul.ac.uk/lecomber/sample-page/geographic-profiling/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
## Not run: 

### The package follows 8 steps using 8 seperate functions

### 1) Load in data
### Assign a matrix of lon lat values to mydata

LoadData(Data=mydata)

### 2) + 3) Load the model and graphic parameters (using defaults here)

ModelParameters()
GraphicParameters()

### 4) Create the prior and maps

CreateMaps(PlotPrior = T)

### 5) Run the MCMC

RunMCMC()

###  6) Thin and produce the geoprofile

ThinandAnalyse(thinning = 100)


### 7) Produce a lovely map and have the geoprofile overlayed

PlotGP(Window = "DEFAULT")

### 8) Report the hit scores of sources, only if sources have been loaded in

reporthitscores()


## End(Not run)

stevenlecomber/Rgeoprofile-1.1.0 documentation built on May 30, 2019, 4:46 p.m.