powered by
Fit a separable spatio-temporal Poisson process model
sepstppm(x, spaceformula, timeformula)
An object of class sepstppm
sepstppm
A stpm object
stpm
A formula for the spatial component. See ppm for details
A formula for the temporal component. It fits a log-linear model with the glm function
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