knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

sppois

Build Status R-CMD-check

The goal of sppois is to implement the two stage estimator for spatial autoregressive Poisson models proposed by Lambert et al. (2010)

This package does not currently implement the Lambert methods. Contributions welcome.

Installation

sppois is not on CRAN. When it is, you can install the released version of sppois from CRAN with:

install.packages("sppois")

For now, you can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("gregmacfarlane/sppois")

Example

The package allows users to estimate a full-information maximum likelihood estimation of spatially-autogressive poisson count models.

library(sppois)
crime_sppois <- sarpoisson(crime_i ~ income + home_value, data = columbus_crime,
                           listw = columbus_neighbors, method = "fiml") 
summary(crime_sppois)


gregmacfarlane/sppois documentation built on June 11, 2021, 10:55 a.m.