Learn R Programming

stopp (version 0.2.3)

sepstlppm: Fit a separable spatio-temporal Poisson process model on a linear network

Description

Fit a separable spatio-temporal Poisson process model on a linear network

Usage

sepstlppm(x, spaceformula, timeformula)

Value

An object of class sepstlppm

Arguments

x

A stlpm object

spaceformula

A formula for the spatial component. See lppm 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)],
L = valencianet)

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


Run the code above in your browser using DataLab