Package: gamclass 0.62.6

gamclass: Functions and Data for a Course on Modern Regression and Classification

Functions and data are provided that support a course that emphasizes statistical issues of inference and generalizability. The functions are designed to make it straightforward to illustrate the use of cross-validation, the training/test approach, simulation, and model-based estimates of accuracy. Methods considered are Generalized Additive Modeling, Linear and Quadratic Discriminant Analysis, Tree-based methods, and Random Forests.

Authors:John Maindonald [aut, cre]

gamclass_0.62.6.tar.gz
gamclass_0.62.6.zip(r-4.7)gamclass_0.62.6.zip(r-4.6)gamclass_0.62.6.zip(r-4.5)
gamclass_0.62.6.tgz(r-4.6-any)gamclass_0.62.6.tgz(r-4.5-any)
gamclass_0.62.6.tar.gz(r-4.7-any)gamclass_0.62.6.tar.gz(r-4.6-any)
gamclass_0.62.6.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
gamclass/json (API)

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

Bug tracker:https://github.com/jhmaindonald/gamclass/issues

Datasets:
  • airAccs - Aircraft Crash data
  • bomregions2018 - Australian and Related Historical Annual Climate Data, by Region
  • bronchitis - Chronic bronchitis in a sample of men in Cardiff
  • coralPval - P-values from biological expression array data
  • cvalues - Historical speed of light measurements
  • FARS - US fatal road accident data for automobiles, 1998 to 2010
  • fars2007 - US Fatal Road Accident Data, 2007 and 2008
  • fars2008 - US Fatal Road Accident Data, 2007 and 2008
  • frontDeaths - Safety Device effectiveness Measures, by Year
  • german - German credit scoring data
  • greatLakesM - Monthly Great Lake heights: 1918 - 2019
  • loti - Global temperature anomalies
  • otherDeaths - Safety Device effectiveness Measures, by Year
  • rearDeaths - Safety Device effectiveness Measures, by Year
  • relDeaths - Yearly Driver deaths, as Fraction of Deaths for All Years
  • sideDeaths - Safety Device effectiveness Measures, by Year

On CRAN:

Conda:

4.90 score 53 scripts 318 downloads 16 exports 12 dependencies

Last updated from:31bf21d41f. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK172
source / vignettesOK249
linux-release-x86_64OK188
macos-release-arm64OK128
macos-oldrel-arm64OK125
windows-develOK102
windows-releaseOK90
windows-oldrelOK75
wasm-releaseOK122

Exports:addhlinesbootregbssBYcutcompareModelsconfusionCVclusterCVgameventCountsgamRFldaErrplotFarsRFclusterrfErrrpartErrsimregtabFarsDead

Dependencies:deldirinterpjpeglatticelatticeExtraMASSpngrandomForestRColorBrewerRcppRcppEigenrpart

Effectiveness of Airbags -- 1998 to 2010 in the US
An analysis based on crashes where there is a harmful event | The (Fatality Analysis Recording System (FARS) data | Why not compare deployment with non-deployment | Not all airbags are equal! | Other factors | The above analyses make an important point | References

Last update: 2025-07-24
Started: 2023-08-20

Model Comparison Using Resampling Methods
Handling skew distributions and/or outliers | Use tree-based methods appropriately! | Choosing the split point | Random forest fit to residuals from a trend surface | Linear and quadratic discriminant analysis | Tree-based methods | Inclusion of interaction terms, with lda() | Multiple Levels of variation -- the Vowel dataset

Last update: 2023-08-22
Started: 2023-08-20

Aircraft Accident Patterns Over Time
Prepare data -- Weekly and daily counts | Fits, to the daily data, and to the weekly data

Last update: 2023-08-20
Started: 2023-08-20

Readme and manuals

Help Manual

Help pageTopics
Functions and Data for a Course in Modern Regressiongamclass-package gamclass
Add horizontal lines to plot.addhlines
Aircraft Crash dataairAccs
Australian and Related Historical Annual Climate Data, by Regionbomregions2018
Chronic bronchitis in a sample of men in Cardiffbronchitis
Between group SS for 'y', for all possible splits on values of 'x'bssBYcut
Compare accuracy of alternative classification methodscompareModels
Given actual and predicted group assignments, give the confusion matrixconfusion
P-values from biological expression array datacoralPval
Historical speed of light measurementscvalues
Cross-validation estimate of predictive accuracy for clustered dataCVcluster
Cross-validation estimate of accuracy from GAM model fitCVgam
Tabulate vector of dates by specified time eventeventCounts
US fatal road accident data for automobiles, 1998 to 2010FARS
US Fatal Road Accident Data, 2007 and 2008fars2007 fars2008
Safety Device effectiveness Measures, by YearfrontDeaths otherDeaths rearDeaths sideDeaths
Random forest fit to residuals from GAM modelgamRF
German credit scoring datagerman
Monthly Great Lake heights: 1918 - 2019greatLakesM
Calculate Error Rates for Linear Discriminant ModelldaErr
Global temperature anomaliesloti
Plot Protection Device Effectiveness Measure Against YearplotFars
Yearly Driver deaths, as Fraction of Deaths for All YearsrelDeaths
Random forests estimate of predictive accuracy for clustered dataRFcluster
Calculate Error Rates for randomForest modelrfErr
Calculate Error Rates for rpart modelrpartErr
Simulate (repeated) regression calculationsbootreg simreg
Extract ratio of ratios estimate of safety device effectiveness, from the 'Fars' dataset.tabFarsDead