gibbSPTM: Gibbs sampler with sptial Potts model for neighbouring...

Description Usage Arguments Examples

View source: R/gibbSPTM.R

Description

Gibbs sampler with sptial Potts model for neighbouring behaviours

Usage

1
2
3
4
gibbSPTM(priors = list(theta = list(m0 = 0, s0 = 1), sigma2 = list(a0 = 2, b0
  = 1)), y, p.sites, season.sites, basis, Coords = NULL, Bds = NULL, ID,
  N.run = 10000, beta.range = c(0.5, 3), meanFunc = NULL, debug = FALSE,
  print.res = FALSE, ...)

Arguments

y

data

p.sites

the composition of each site.

season.sites

season data for each site.

Coords

Coordinates of the sites.

Bds

Matrix of edges between sites.

ID

ID vector of the sites.

N.run

Number of run of the sampler.

beta.range

Range of beta for the Potts model.

theta

parameters to be estimated

Examples

1
2
data("wq_analysis_week2")
SPTMData(wq.raw.obs, frequency = "quarter")

ick003/SpTMixture documentation built on May 18, 2019, 2:32 a.m.