Skip to content

stgam

1.2.0

Spatially and Temporally Varying Coefficient Models Using Generalized Additive Models

0packages depend
2.6Kdownloads / year
test coverage
12/13checks pass

Overview

About
Maintained by Lex ComberFirst published 2024-06-258 releasesCRAN page ↗GitHub ↗

A framework for undertaking space and time varying coefficient models (varying parameter models) using a Generalized Additive Model (GAM) with smooths approach. The framework suggests the need to investigate for the presence and nature of any space-time dependencies in the data. It proposes a workflow that creates and refines an initial space-time GAM and includes tools to create and evaluate multiple model forms. The workflow sequence is to: i) Prepare the data by lengthening it to have a single location and time variables for each observation. ii) Create all possible space and/or time models in which each predictor is specified in different ways in smooths. iii) Evaluate each model via their AIC value and pick the best one. iv) Create the final model. v) Calculate the varying coefficient estimates to quantify how the relationships between the target and predictor variables vary over space, time or space-time. vi) Create maps, time series plots etc. The number of knots used in each smooth can be specified directly or iteratively increased. This is illustrated with a climate point dataset of the dry rain forest in South America. This builds on work in Comber et al (2024) doi:10.1080/13658816.2023.2270285 and Comber et al (2004) doi:10.3390/ijgi13120459.

Install

Health

CRAN checks
1NOTE12OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 8.0 min · r-oldrel-macos-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
9
Dependencies · direct
Check history
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-08
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-06-07
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 319 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
80%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

2.6K
CRAN downloads in the past year
Rank #17,049 · ~7/day · ~219/mo
Daily download trend is not available in this view yet.
18130 days
63190 days
2.6K1 year
Compare downloads with other packages →
Also on154 r2u3 autocran

Repository

Repository
7Stars
4Forks
1Open issues
2Open PRs
0Releases
160Commits
3Contributors
160 commits · Last activity 2026-05-18

Repository practices

Upstream repositoryBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/lexcomber/stgam on 2026-08-02.

Continuous integration (1)
GitHub Actions
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)
Depends (3)
R >= 4.1.0mgcvglue
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (3)
Contributor
Contributor
Contributor · added in 1.2.0
Package Timeline

8 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.0Latest
    2026-01-29 · current release · diff ↗
  • 1.1.0
    2025-08-27 · diff ↗
  • 1.0.2
    2025-06-12 · diff ↗
  • 1.0.1
    2025-06-07 · diff ↗
  • 1.0.0
    2025-05-12 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.0.1.2
    2024-07-31 · diff ↗
  • 0.0.1.1
    2024-07-12 · diff ↗
  • 0.0.1.0
    2024-06-25
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-06-25
Total releases
8 / 2 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
26 KB / 1 file
Download size
3.3 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy