sapa.grid: Create a longitude by latitude grid of the data

Description Usage Arguments Note Author(s) References Examples

Description

Creates a grid of the means for each zip code for a particular Dependent Variable (e.g., ’g’). Data that are in the same grid are averaged. Note that the larger the grid size, the more precise the results, but the time taken for this and subsequent calculations increase by the square of the grid dimensions. There is an ’average’ option which subtracts the overall weighted average from every cell. This functionally centers the data around that average. The alternative is to have all empty cells have the average.

Usage

1
sapa.grid(df, DV, gridsize = 300, database = "state", average = TRUE, regions = ".")

Arguments

df
DV
gridsize
database
average
regions

Note

Please file bugs at https://github.com/frenchja/SAPATools/issues.

Author(s)

William Revelle <revelle@northwestern.edu> Maintainer: Jason A. French

References

https://sapa-project.org/r/

Examples

1
# iq.grid <- sapa.grid(data=s.zip,DV='g',grid=300,average=TRUE)

frenchja/SAPATools documentation built on May 16, 2019, 2:47 p.m.