Package: MapGAM 1.3

MapGAM: Mapping Smoothed Effect Estimates from Individual-Level Data

Contains functions for mapping odds ratios, hazard ratios, or other effect estimates using individual-level data such as case-control study data, using generalized additive models (GAMs) or Cox models for smoothing with a two-dimensional predictor (e.g., geolocation or exposure to chemical mixtures) while adjusting linearly for confounding variables, using methods described by Kelsall and Diggle (1998), Webster at al. (2006), and Bai et al. (2020). Includes convenient functions for mapping point estimates and confidence intervals, efficient control sampling, and permutation tests for the null hypothesis that the two-dimensional predictor is not associated with the outcome variable (adjusting for confounders).

Authors:Lu Bai, Scott Bartell, Robin Bliss, and Veronica Vieira

MapGAM_1.3.tar.gz
MapGAM_1.3.zip(r-4.5)MapGAM_1.3.zip(r-4.4)MapGAM_1.3.zip(r-4.3)
MapGAM_1.3.tgz(r-4.4-any)MapGAM_1.3.tgz(r-4.3-any)
MapGAM_1.3.tar.gz(r-4.5-noble)MapGAM_1.3.tar.gz(r-4.4-noble)
MapGAM_1.3.tgz(r-4.4-emscripten)MapGAM_1.3.tgz(r-4.3-emscripten)
MapGAM.pdf |MapGAM.html
MapGAM/json (API)

# Install 'MapGAM' in R:
install.packages('MapGAM', repos = c('https://smbartell.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • CAdata - Deidentified Survival Data for California
  • CAgrid - A Grid on State of California
  • CAmap - Map of California
  • MAdata - Synthetic Case-Control Data for Massachusetts
  • MAmap - Map of Massachusetts
  • beertweets - Geocoded Tweets with Beer Indicator

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.37 score 1 stars 1 packages 26 scripts 331 downloads 3 mentions 25 exports 23 dependencies

Last updated 1 years agofrom:4d4cb56e3e. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 06 2024
R-4.5-winNOTENov 06 2024
R-4.5-linuxNOTENov 06 2024
R-4.4-winNOTENov 06 2024
R-4.4-macNOTENov 06 2024
R-4.3-winOKNov 06 2024
R-4.3-macOKNov 06 2024

Exports:AIC.modgamcoef.gamcoxcoef.modgamcolormapdlsformula.gamcoxformula.modgamgamcoxgamcox.fitMapGAM.versionmodgammypredict.gamoptspanplot.modgampredgridpredict.gamcoxprint.gamcoxprint.modgamresiduals.gamcoxresiduals.modgamsampcontsummary.gamcoxsummary.modgamtoformulatrimdata

Dependencies:classclassIntcodetoolscolorspaceDBIe1071foreachgamiteratorsKernSmoothlatticemagrittrMASSMatrixPBSmappingproxyRcpps2sfspsurvivalunitswk

Readme and manuals

Help Manual

Help pageTopics
Mapping Smoothed Effect Estimates from Individual-Level Spatial DataMapGAM-package MapGAM
AIC of the 'modgam' ObjectAIC.modgam
Geocoded Tweets with Beer Indicatorbeertweets
Deidentified Survival Data for CaliforniaCAdata
A Grid on State of CaliforniaCAgrid
Map of CaliforniaCAmap
Coefficents of the 'gamcox' Objectcoef.gamcox
Coefficients of the 'modgam' Objectcoef.modgam
Maps Predicted Values and Clusters on a Two-Dimentional Mapcolormap
Calculating Derivatives of Partial Likelihood for Cox Proportional Hazard Additive Modelsdls
Formula of the 'gamcox' Objectformula.gamcox
Formula of the 'modgam' Objectformula.modgam
Fit a Cox Additive Model with a Two-Dimensional Smoothgamcox gamcox.fit
Synthetic Case-Control Data for MassachusettsMAdata
Map of MassachusettsMAmap
Revision Dates for MapGAM FunctionsMapGAM.version
Fit a Generalized Additive Model (GAM) with a Two-Dimensional Smooth and Make Predictionsmodgam
Prediction for GAM Fitsmypredict.gam
Determine the Optimal Span Size for 'modgam'optspan
Maps Predicted Values and Clusters for 'modgam' Objectsplot.modgam
Create a Grid and Clip It to a Map and Data Boundspredgrid
Prediction Method for 'gamcox' Fitspredict.gamcox
Print the 'gamcox' Objectprint.gamcox
Print the 'modgam' Objectprint.modgam
Residuals of the 'gamcox' Objectresiduals.gamcox
Residuals of the 'modgam' Objectresiduals.modgam
Unmatched Control Samplingsampcont
Summarize the 'gamcox' Objectsummary.gamcox
Summarize the 'modgam' Objectsummary.modgam
Build a Formula Based on Data for 'modgam' Functiontoformula
Trim a Data Set To Map Boundariestrimdata