Learn R Programming

MapGAM (version 1.3)

Mapping Smoothed Effect Estimates from Individual-Level Data

Description

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).

Copy Link

Version

Install

install.packages('MapGAM')

Monthly Downloads

335

Version

1.3

License

GPL-3

Maintainer

Scott Bartell

Last Published

July 15th, 2023

Functions in MapGAM (1.3)

coef.gamcox

Coefficents of the gamcox Object
CAmap

Map of California
CAdata

Deidentified Survival Data for California
AIC.modgam

AIC of the modgam Object
gamcox

Fit a Cox Additive Model with a Two-Dimensional Smooth
plot.modgam

Maps Predicted Values and Clusters for modgam Objects
print.modgam

Print the modgam Object
predict.gamcox

Prediction Method for gamcox Fits
residuals.modgam

Residuals of the modgam Object
dls

Calculating Derivatives of Partial Likelihood for Cox Proportional Hazard Additive Models
formula.gamcox

Formula of the gamcox Object
summary.modgam

Summarize the modgam Object
predgrid

Create a Grid and Clip It to a Map and Data Bounds
print.gamcox

Print the gamcox Object
modgam

Fit a Generalized Additive Model (GAM) with a Two-Dimensional Smooth and Make Predictions
optspan

Determine the Optimal Span Size for modgam
formula.modgam

Formula of the modgam Object
summary.gamcox

Summarize the gamcox Object
colormap

Maps Predicted Values and Clusters on a Two-Dimentional Map
mypredict.gam

Prediction for GAM Fits
residuals.gamcox

Residuals of the gamcox Object
trimdata

Trim a Data Set To Map Boundaries
sampcont

Unmatched Control Sampling
toformula

Build a Formula Based on Data for modgam Function
coef.modgam

Coefficients of the modgam Object
MAdata

Synthetic Case-Control Data for Massachusetts
MapGAM.version

Revision Dates for MapGAM Functions
beertweets

Geocoded Tweets with Beer Indicator
MapGAM-package

Mapping Smoothed Effect Estimates from Individual-Level Spatial Data
MAmap

Map of Massachusetts
CAgrid

A Grid on State of California