{
  "_id": "6a1efab1b401979e7341882a",
  "Package": "stgam",
  "Title": "Spatially and Temporally Varying Coefficient Models Using\nGeneralized Additive Models",
  "Version": "1.2.1",
  "Authors@R": "c(\nperson(\"Lex\", \"Comber\", email = \"a.comber@leeds.ac.uk\", role = c(\"aut\", \"cre\")),\nperson(\"Paul\", \"Harris\", email = \"paul.harris@rothamsted.ac.uk\", role = c(\"ctb\")),\nperson(\"Gonzalo\", \"Irisarri\", email = \"jirisarr@uwyo.edu\", role = c(\"ctb\")),\nperson(\"Chris\", \"Brunsdon\", email = \"christopher.brunsdon@mu.ie\", role = c(\"ctb\"))\n)",
  "Author": "Lex Comber [aut, cre], Paul Harris [ctb], Gonzalo Irisarri\n[ctb], Chris Brunsdon [ctb]",
  "Maintainer": "Lex Comber <a.comber@leeds.ac.uk>",
  "Description": "A framework for undertaking space and time varying\ncoefficient models (varying parameter models) using a\nGeneralized Additive Model (GAM) with smooths approach. The\nframework suggests the need to investigate for the presence and\nnature of any space-time dependencies in the data. It proposes\na workflow that creates and refines an initial space-time GAM\nand includes tools to create and evaluate multiple model forms.\nThe workflow sequence is to: i) Prepare the data by lengthening\nit to have a single location and time variables for each\nobservation. ii) Create all possible space and/or time models\nin which each predictor is specified in different ways in\nsmooths. iii) Evaluate each model via their AIC value and pick\nthe best one. iv) Create the final model. v) Calculate the\nvarying coefficient estimates to quantify how the relationships\nbetween the target and predictor variables vary over space,\ntime or space-time. vi) Create maps, time series plots etc. The\nnumber of knots used in each smooth can be specified directly\nor iteratively increased. This is illustrated with a climate\npoint dataset of the dry rain forest in South America. This\nbuilds on work in Comber et al (2024)\n<doi:10.1080/13658816.2023.2270285> and Comber et al (2004)\n<doi:10.3390/ijgi13120459>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "URL": "https://github.com/lexcomber/stgam",
  "BugReports": "https://github.com/lexcomber/stgam/issues",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://lexcomber.r-universe.dev",
  "Date/Publication": "2026-05-18 10:10:07 UTC",
  "RemoteUrl": "https://github.com/lexcomber/stgam",
  "RemoteRef": "HEAD",
  "RemoteSha": "ed77303303fa15f2b18dcd5582476ade96df1cf2",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-18 11:19:29 UTC",
    "User": "root"
  },
  "MD5sum": "843e4ffdbbc0760250a8022d04cb279c",
  "_user": "lexcomber",
  "_type": "src",
  "_file": "stgam_1.2.1.tar.gz",
  "_fileid": "1abde4c96f88c2cd46eefc55f73d9b0b5716050d957b6cd9a544f1f33c505db8",
  "_filesize": 3962566,
  "_sha256": "1abde4c96f88c2cd46eefc55f73d9b0b5716050d957b6cd9a544f1f33c505db8",
  "_created": "2026-05-18T11:19:29.000Z",
  "_published": "2026-06-02T15:45:53.290Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79111735254,
      "time": 174,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7056420231"
    },
    {
      "job": 79111735566,
      "time": 179,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7056422218"
    },
    {
      "job": 79111735153,
      "time": 110,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7056399720"
    },
    {
      "job": 79111734723,
      "time": 104,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7056397573"
    },
    {
      "job": 79111734053,
      "time": 259,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7056361921"
    },
    {
      "job": 79111734395,
      "time": 139,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7362705662"
    },
    {
      "job": 79111734860,
      "time": 130,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7056406042"
    },
    {
      "job": 79111735214,
      "time": 143,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7056410549"
    },
    {
      "job": 79111734875,
      "time": 126,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7056404781"
    }
  ],
  "_buildurl": "https://github.com/r-universe/lexcomber/actions/runs/26030056867",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/lexcomber/stgam",
  "_commit": {
    "id": "ed77303303fa15f2b18dcd5582476ade96df1cf2",
    "author": "Lex Comber <a.comber@leeds.ac.uk>",
    "committer": "Lex Comber <a.comber@leeds.ac.uk>",
    "message": "updates to version 1.2.1\n",
    "time": 1779099007
  },
  "_maintainer": {
    "name": "Lex Comber",
    "email": "a.comber@leeds.ac.uk",
    "login": "lexcomber",
    "description": "",
    "uuid": 15378647
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "mgcv",
      "version": ">= 1.9-1",
      "role": "Depends"
    },
    {
      "package": "glue",
      "role": "Depends"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "doParallel",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "cols4all",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "cowplot",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "lubridate",
      "role": "Suggests"
    },
    {
      "package": "sf",
      "role": "Suggests"
    },
    {
      "package": "gratia",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "role": "Suggests"
    }
  ],
  "_owner": "lexcomber",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-20",
      "n": 2
    },
    {
      "week": "2025-23",
      "n": 4
    },
    {
      "week": "2025-24",
      "n": 2
    },
    {
      "week": "2025-30",
      "n": 2
    },
    {
      "week": "2025-32",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 24
    },
    {
      "week": "2026-06",
      "n": 1
    },
    {
      "week": "2026-09",
      "n": 1
    },
    {
      "week": "2026-11",
      "n": 2
    },
    {
      "week": "2026-13",
      "n": 1
    },
    {
      "week": "2026-16",
      "n": 2
    },
    {
      "week": "2026-20",
      "n": 2
    },
    {
      "week": "2026-21",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 7,
  "_contributors": [
    {
      "user": "lexcomber",
      "count": 156,
      "uuid": 15378647
    },
    {
      "user": "cadam00",
      "count": 3,
      "uuid": 115782686
    },
    {
      "user": "nickbearman",
      "count": 1,
      "uuid": 6410645
    }
  ],
  "_userbio": {
    "uuid": 15378647,
    "type": "user",
    "name": "Lex Comber"
  },
  "_downloads": {
    "count": 183,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/stgam"
  },
  "_devurl": "https://github.com/lexcomber/stgam",
  "_searchresults": 9,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/stgam.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/lexcomber/stgam",
  "_realowner": "lexcomber",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1.0",
      "date": "2024-06-25"
    },
    {
      "version": "0.0.1.1",
      "date": "2024-07-12"
    },
    {
      "version": "0.0.1.2",
      "date": "2024-07-31"
    },
    {
      "version": "1.0.0",
      "date": "2025-05-12"
    },
    {
      "version": "1.0.1",
      "date": "2025-06-07"
    },
    {
      "version": "1.0.2",
      "date": "2025-06-12"
    },
    {
      "version": "1.1.0",
      "date": "2025-08-27"
    },
    {
      "version": "1.2.0",
      "date": "2026-01-29"
    }
  ],
  "_exports": [
    "calculate_vcs",
    "effect_size",
    "evaluate_models",
    "gam_model_rank"
  ],
  "_datasets": [
    {
      "name": "chaco",
      "title": "Chaco dry rainforest data (2012-2022)",
      "object": "chaco",
      "class": [
        "sf",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "id",
        "ndvi",
        "tmax",
        "pr",
        "month",
        "date",
        "year",
        "lon",
        "lat",
        "X",
        "Y",
        "geometry"
      ],
      "rows": 2000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calculate_vcs",
      "title": "Extracts varying coefficient estimates (for SVC, TVC and STVC models).",
      "topics": [
        "calculate_vcs"
      ]
    },
    {
      "page": "chaco",
      "title": "Chaco dry rainforest data (2012-2022)",
      "topics": [
        "chaco"
      ]
    },
    {
      "page": "effect_size",
      "title": "Quantifies the relative effect sizes of each component of 'mgcv' GAM",
      "topics": [
        "effect_size"
      ]
    },
    {
      "page": "evaluate_models",
      "title": "Evaluates multiple models with each predictor variable specified in different ways in order to determining model form",
      "topics": [
        "evaluate_models"
      ]
    },
    {
      "page": "gam_model_rank",
      "title": "Ranks models by AIC, giving the model form for each predictor variable.",
      "topics": [
        "gam_model_rank"
      ]
    }
  ],
  "_readme": "https://github.com/lexcomber/stgam/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "doParallel",
    "dplyr",
    "foreach",
    "generics",
    "glue",
    "iterators",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "mgcv",
    "nlme",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rlang",
    "stringi",
    "stringr",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "stgam_intro_chaco.Rmd",
      "filename": "stgam_intro_chaco.html",
      "title": "A Geographer's introduction to GAMs",
      "author": "Lex Comber, Paul Harris, Gonzalo Irisarri and Chris Brunsdon",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "1. Data considerations",
        "map the data layers",
        "2. Detecting variability",
        "2.1 Initial investigations with OLS and dummy variables",
        "2.2 Detecting variability using GAM smooths",
        "create simulated data",
        "plot x and y",
        "2.3 Temporal variability",
        "2.4 Spatial variability",
        "the second GAM",
        "2.5 Space-time variability I",
        "2.6 Space-time variability II",
        "2.8 Summary",
        "References"
      ],
      "created": "2026-01-26 19:58:07",
      "modified": "2026-04-13 08:07:43",
      "commits": 3
    },
    {
      "source": "stgam_vc_models_chaco.Rmd",
      "filename": "stgam_vc_models_chaco.html",
      "title": "A Geographer's introduction to space-time regression with GAMs using stgam",
      "author": "Lex Comber, Paul Harris, Gonzalo Irisarri and Chris Brunsdon",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "1. Data and variables",
        "2. Space-time GAM contruction and considertations",
        "2.1 Overview",
        "2.2 Space-time GAMs",
        "2.3 Space-time GAM Refinement II: Effect size",
        "2.4 Space-time GAM Refinement III: k the number of knots",
        "2.5. Extracting, summarising and plotting the coefficients",
        "title",
        "plot",
        "join to the grid",
        "select the variables and pivot longer",
        "rename and select with transmute",
        "make the new time object a factor (to enforce plotting order)",
        "4. and plot",
        "adjust default shading",
        "facet",
        "apply and modify plot theme",
        "2.6 Summary",
        "3. Working with stgam: model selection",
        "3.1 Using AIC to evaluate models",
        "3.2 Model selection: determining GAM form",
        "3.3 The 'best' model",
        "3.4 Plot and map the results",
        "3.5 Summary",
        "3.6 Useful resources",
        "3.7 Final words",
        "References"
      ],
      "created": "2026-01-26 19:58:07",
      "modified": "2026-05-18 10:10:07",
      "commits": 5
    }
  ],
  "_score": 6.260071387985075,
  "_indexed": true,
  "_nocasepkg": "stgam",
  "_universes": [
    "lexcomber"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.1",
      "date": "2026-05-18T11:22:10.000Z",
      "distro": "noble",
      "commit": "ed77303303fa15f2b18dcd5582476ade96df1cf2",
      "fileid": "fbc5b94c69fe86d962060e17049f210917bf74eb79266b2f38ed48209d97db8d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lexcomber/actions/runs/26030056867"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.1",
      "date": "2026-05-18T11:22:15.000Z",
      "distro": "noble",
      "commit": "ed77303303fa15f2b18dcd5582476ade96df1cf2",
      "fileid": "5a2d1285eec098a7bb4ebb36e36829fcd0901d3b5752ea7affbcdec3b5f0f800",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lexcomber/actions/runs/26030056867"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.1",
      "date": "2026-05-18T11:21:09.000Z",
      "commit": "ed77303303fa15f2b18dcd5582476ade96df1cf2",
      "fileid": "84badf5a5d82e1e9ffaa626be43d75fd04e83bfcffdb64d61297f40b71efcded",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lexcomber/actions/runs/26030056867"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.1",
      "date": "2026-05-18T11:21:06.000Z",
      "commit": "ed77303303fa15f2b18dcd5582476ade96df1cf2",
      "fileid": "5a6ddacfa936708e6a3380bafc687c45192bf44fe0943ddd00bede13bfd223e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lexcomber/actions/runs/26030056867"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-05-18T11:21:15.000Z",
      "commit": "ed77303303fa15f2b18dcd5582476ade96df1cf2",
      "fileid": "02db996d29a1b742aca482db819529055b57f00b391fb902967fd55624d8addf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lexcomber/actions/runs/26030056867"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-05-18T11:21:32.000Z",
      "commit": "ed77303303fa15f2b18dcd5582476ade96df1cf2",
      "fileid": "ea5d73822da4c709d585ff66edb1bfe1b2ba9a58b20a94f22dd12410dbfa4092",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lexcomber/actions/runs/26030056867"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-05-18T11:21:11.000Z",
      "commit": "ed77303303fa15f2b18dcd5582476ade96df1cf2",
      "fileid": "37db0b965b438165bed6f3483c16524ae4dbadeed9c697d3555b26a2e9e7fff9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lexcomber/actions/runs/26030056867"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.1",
      "date": "2026-06-02T15:45:25.000Z",
      "commit": "ed77303303fa15f2b18dcd5582476ade96df1cf2",
      "fileid": "6b5dad5412c0fbf8acc0a83fedcb02bbc9f9c37047a809990dd7f28ab06a8a89",
      "status": "success",
      "buildurl": "https://github.com/r-universe/lexcomber/actions/runs/26030056867"
    }
  ]
}