geoDataCheck: Check data

Description Usage Arguments Examples

Description

Check that all data for use in Rgeoprofile MCMC is in the correct format.

Usage

1
geoDataCheck(data, silent = FALSE)

Arguments

data

a data list object, as defined by geoData().

silent

whether to report if data passes checks to console.

Examples

1
2
3
4
5
6
7
8
9
# John Snow cholera data
d <- geoData(Cholera$longitude, Cholera$latitude)
geoDataCheck(d)

# simulated data
sim <-rDPM(50, priorMean_longitude = -0.04217491, priorMean_latitude = 
51.5235505, alpha=1, sigma=1, tau=3)
d <- geoData(sim$longitude, sim $latitude)
geoDataCheck(d)

bobverity/Rgeoprofile documentation built on May 12, 2019, 11:28 p.m.