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

gamclass_0.62.6.tar.gz
gamclass_0.62.6.zip(r-4.5)gamclass_0.62.6.zip(r-4.4)gamclass_0.62.6.zip(r-4.3)
gamclass_0.62.6.tgz(r-4.4-any)gamclass_0.62.6.tgz(r-4.3-any)
gamclass_0.62.6.tar.gz(r-4.5-noble)gamclass_0.62.6.tar.gz(r-4.4-noble)
gamclass_0.62.6.tgz(r-4.4-emscripten)gamclass_0.62.6.tgz(r-4.3-emscripten)
gamclass.pdf |gamclass.html
gamclass/json (API)
NEWS

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

Peer review:

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

Datasets:
  • FARS - US fatal road accident data for automobiles, 1998 to 2010
  • 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
  • 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:

4.80 score 42 scripts 340 downloads 16 exports 12 dependencies

Last updated 1 years agofrom:447cd7bc86. Checks:OK: 5 NOTE: 2. Indexed: yes.

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

Exports:addhlinesbootregbssBYcutcompareModelsconfusionCVclusterCVgameventCountsgamRFldaErrplotFarsRFclusterrfErrrpartErrsimregtabFarsDead

Dependencies:deldirinterpjpeglatticelatticeExtraMASSpngrandomForestRColorBrewerRcppRcppEigenrpart

Aircraft Accident Patterns Over Time

Rendered fromairAccs.Rmdusingknitr::rmarkdownon Nov 14 2024.

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

Effectiveness of Airbags -- 1998 to 2010 in the US

Rendered fromAirbagEffectiveness.Rmdusingknitr::rmarkdownon Nov 14 2024.

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

Model Comparison Using Resampling Methods

Rendered fromresampling.Rmdusingknitr::rmarkdownon Nov 14 2024.

Last update: 2023-08-22
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