Learn R Programming

stopp (version 0.2.3)

sepstppm: Fit a separable spatio-temporal Poisson process model

Description

Fit a separable spatio-temporal Poisson process model

Usage

sepstppm(x, spaceformula, timeformula)

Value

An object of class sepstppm

Arguments

x

A stpm object

spaceformula

A formula for the spatial component. See ppm for details

timeformula

A formula for the temporal component. It fits a log-linear model with the glm function

Examples

Run this code
crimesub <- stpm(valenciacrimes$df[101:200, ],
           names = colnames(valenciacrimes$df)[-c(1:3)])

mod1 <- sepstppm(crimesub, spaceformula = ~x ,
                  timeformula = ~ day)



Run the code above in your browser using DataLab