areaglmm: Area-level spatial generalized linear mixed models
This package contains functions for fitting area-level spatial and spatio-temporal models in R, using the spatial correlation structure described in papers submitted for publication as part of a dissertation. The package's regression function operates on a new class of areal data object, which can be created using functions in the package. Plotting functions are also provided for mapping the area level relative risks and continuous underlying spatial residuals.
For installation on a PC:
- Identify your current working directory in your R session via getwd(), then place the tar.gz source file in this directory.
- Run the following command to install the library:
install.packages("areaglmm_1.0.tar.gz", repos=NULL, type="source")
For installation on a Mac:
- Download the tar.gz source file and place it on your Desktop.
- Open the Terminal application (usually in Applications and found in the Utilities folder). Type the following two commands (see below if the first command causes an error):
R CMD INSTALL areaglmm_1.0.tar.gz
If you get an error from the first command, find your present working directory (type pwd and hit enter/return) and place the tar.gz file in this directory (folder). Then you may use the R CMD INSTALL command listed above to install the package.