predCrimMaoWeb: Spatio-temporal prediction of crimes in Manaus for Web...

Description Usage Arguments Value References Examples

View source: R/predCrimMaoWeb.R

Description

This function develops an one-step ahead prediction algorithm based on Poisson dynamic generalized linear model (DGLM) for the count of crime in Manaus.

Usage

1
2
predCrimMaoWeb(x, type = "ROUBO", delta = 0.89, by1 = "week", m0 = NULL,
  c0 = NULL, r.t0 = NULL, s.t0 = NULL, sigVg = NULL)

Arguments

x

A data frame containig the following columns:LAT,LONG,DATA,DIA.SEMANA, HORA,PERIODO,Crime.

type

Character string giving the type of crime to make the predictions. In this version only "ROUBO" is available.

delta

Discount factor.

by1

Character string specifying the periodicity of the counts. In this version only "week" is available.

Value

A map that provides predictions of crime intensity and the mean square error.

References

Harrison, Jeff, and Mike West. Bayesian forecasting & dynamic models. New York: Springer, 1999.

TRIANTAFYLLOPOULOS, K. Dynamic z generalized linear models for non-Gaussian time series forecasting. arXiv preprint arXiv:0802.0219, 2008.

Examples

1
2
data(lastFiveWeek)
predCrimMaoWeb(lastFiveWeek,type="ROUBO",by1="week")

lrcastro/PredCrim documentation built on May 21, 2019, 7:52 a.m.