{
  "_id": "6a10236facfb0bcc41c8d6c5",
  "Package": "BSTFA",
  "Title": "Bayesian Spatio-Temporal Factor Analysis Model",
  "Description": "Implements Bayesian spatio-temporal factor analysis models\nfor multivariate data observed across space and time. The\npackage provides tools for model fitting via Markov chain Monte\nCarlo (MCMC), spatial and temporal interpolation, and\nvisualization of latent factors and loadings to support\ninference and exploration of underlying spatio-temporal\npatterns. Designed for use in environmental, ecological, or\npublic health applications, with support for posterior\nprediction and uncertainty quantification. Includes functions\nsuch as BSTFA() for model fitting and plot_factor() to\nvisualize the latent processes.  Functions are based on and\nextended from methods described in Berrett, et al. (2020)\n<doi:10.1002/env.2609>.",
  "Version": "0.1.1",
  "Authors@R": "c(\nperson(\"Adam\", \"Simpson\", , \"adamiser810@gmail.com\", role = c(\"aut\")),\nperson(\"Candace\", \"Berrett\", email=\"cberrett@stat.byu.edu\", role=c(\"aut\",\"cre\"), comment=c(ORCID=\"0000-0003-4721-3065\"))\n)",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "LazyDataCompression": "xz",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nmake libicu-dev libssl-dev libproj-dev libsqlite3-dev\nlibudunits2-dev",
  "Repository": "https://cberrettstat.r-universe.dev",
  "Date/Publication": "2026-05-13 15:33:30 UTC",
  "RemoteUrl": "https://github.com/cberrettstat/bstfa",
  "RemoteRef": "HEAD",
  "RemoteSha": "a292b37340f66b705801d947f524e5c0b04fb734",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-13 18:15:54 UTC",
    "User": "root"
  },
  "Author": "Adam Simpson [aut],\nCandace Berrett [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-4721-3065>)",
  "Maintainer": "Candace Berrett <cberrett@stat.byu.edu>",
  "MD5sum": "09af19db69a61b8f25838cfd254d522d",
  "_user": "cberrettstat",
  "_type": "src",
  "_file": "BSTFA_0.1.1.tar.gz",
  "_fileid": "e5e44a6e5a73fb92e3422e4675c6c4c5df7c711866833e849e977ab11812b1dc",
  "_filesize": 6112019,
  "_sha256": "e5e44a6e5a73fb92e3422e4675c6c4c5df7c711866833e849e977ab11812b1dc",
  "_created": "2026-05-13T18:15:54.000Z",
  "_published": "2026-05-22T09:35:43.121Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77353710977,
      "time": 282,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6978213555"
    },
    {
      "job": 77353710847,
      "time": 239,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6978198384"
    },
    {
      "job": 77353711754,
      "time": 271,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6978210064"
    },
    {
      "job": 77353711512,
      "time": 253,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6978205097"
    },
    {
      "job": 77353711360,
      "time": 259,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6978188937"
    },
    {
      "job": 77353711326,
      "time": 424,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6978252804"
    },
    {
      "job": 77353710798,
      "time": 235,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6978186680"
    },
    {
      "job": 77353711009,
      "time": 380,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6978239519"
    },
    {
      "job": 77353710541,
      "time": 338,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6978112850"
    },
    {
      "job": 77353710335,
      "time": 172,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157399555"
    },
    {
      "job": 77353710731,
      "time": 171,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6978175781"
    },
    {
      "job": 77353711066,
      "time": 184,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6978179588"
    },
    {
      "job": 77353711135,
      "time": 198,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6978184997"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cberrettstat/bstfa",
  "_commit": {
    "id": "a292b37340f66b705801d947f524e5c0b04fb734",
    "author": "Candace Berrett <cberrett@fang-2.byu.edu>",
    "committer": "Candace Berrett <cberrett@fang-2.byu.edu>",
    "message": "Minor function updates and updated package\n",
    "time": 1778686410
  },
  "_maintainer": {
    "name": "Candace Berrett",
    "email": "cberrett@stat.byu.edu",
    "login": "cberrettstat",
    "uuid": 55203575,
    "orcid": "0000-0003-4721-3065"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "RColorBrewer",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ggpubr",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "MCMCpack",
      "role": "Imports"
    },
    {
      "package": "coda",
      "role": "Imports"
    },
    {
      "package": "npreg",
      "role": "Imports"
    },
    {
      "package": "matrixcalc",
      "role": "Imports"
    },
    {
      "package": "scatterplot3d",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "RcppArmadillo",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "utils",
      "role": "Suggests"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "role": "Suggests"
    },
    {
      "package": "bookdown",
      "role": "Suggests"
    },
    {
      "package": "magick",
      "role": "Suggests"
    },
    {
      "package": "maps",
      "role": "Suggests"
    },
    {
      "package": "loo",
      "role": "Suggests"
    }
  ],
  "_owner": "cberrettstat",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-20",
      "n": 1
    },
    {
      "week": "2025-21",
      "n": 2
    },
    {
      "week": "2025-22",
      "n": 2
    },
    {
      "week": "2025-23",
      "n": 7
    },
    {
      "week": "2025-24",
      "n": 4
    },
    {
      "week": "2025-25",
      "n": 4
    },
    {
      "week": "2025-26",
      "n": 8
    },
    {
      "week": "2025-27",
      "n": 7
    },
    {
      "week": "2025-28",
      "n": 10
    },
    {
      "week": "2025-29",
      "n": 2
    },
    {
      "week": "2025-31",
      "n": 1
    },
    {
      "week": "2025-34",
      "n": 1
    },
    {
      "week": "2026-01",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-20",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "cberrettstat",
      "count": 4,
      "uuid": 55203575
    }
  ],
  "_userbio": {
    "uuid": 55203575,
    "type": "user",
    "name": "C Berrett"
  },
  "_downloads": {
    "count": 256,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BSTFA"
  },
  "_devurl": "https://github.com/cberrettstat/bstfa",
  "_searchresults": 2,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/BSTFA.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/cberrettstat/bstfa",
  "_realowner": "cberrettstat",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-08-28"
    }
  ],
  "_exports": [
    "bisquare1d",
    "bisquare2d",
    "BSTFA",
    "BSTFAfull",
    "compute_summary",
    "computeLogLik",
    "convergence_diag",
    "defineRegion",
    "makeNewS",
    "makePredS",
    "map_spatial_param",
    "plot_annual",
    "plot_factor",
    "plot_fourier_bases",
    "plot_location",
    "plot_spatial_param",
    "plot_trace",
    "predictBSTFA"
  ],
  "_datasets": [
    {
      "name": "out.sm",
      "title": "Output of BSTFA evaluated on a subset of utahDataList",
      "object": "out.sm",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "utahDataList",
      "title": "Utah Minimum Temperatures",
      "object": "utahDataList",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bisquare1d",
      "title": "Bisquare bases for 1-dimensional space",
      "topics": [
        "bisquare1d"
      ]
    },
    {
      "page": "bisquare2d",
      "title": "Bisquare bases for 2-dimensional space",
      "topics": [
        "bisquare2d"
      ]
    },
    {
      "page": "BSTFA",
      "title": "Reduced BSTFA function",
      "topics": [
        "BSTFA"
      ]
    },
    {
      "page": "BSTFAfull",
      "title": "Full BSTFA function",
      "topics": [
        "BSTFAfull"
      ]
    },
    {
      "page": "compute_summary",
      "title": "Print computation summary",
      "topics": [
        "compute_summary"
      ]
    },
    {
      "page": "computeLogLik",
      "title": "Compute log-likelihood",
      "topics": [
        "computeLogLik"
      ]
    },
    {
      "page": "convergence_diag",
      "title": "Check effective sample size and geweke diagnostic",
      "topics": [
        "convergence_diag"
      ]
    },
    {
      "page": "defineRegion",
      "title": "Define the initial region of interest.",
      "topics": [
        "defineRegion"
      ]
    },
    {
      "page": "makeNewS",
      "title": "Create a matrix of bisquare bases for a set of locations.",
      "topics": [
        "makeNewS"
      ]
    },
    {
      "page": "makePredS",
      "title": "Create a matrix of bisquare bases for new locations.",
      "topics": [
        "makePredS"
      ]
    },
    {
      "page": "map_spatial_param",
      "title": "Plot a map of interpolated spatially-dependent parameter values.",
      "topics": [
        "map_spatial_param"
      ]
    },
    {
      "page": "out.sm",
      "title": "Output of BSTFA evaluated on a subset of utahDataList",
      "topics": [
        "out.sm"
      ]
    },
    {
      "page": "plot_annual",
      "title": "Plot annual/seasonal behavior at a specific location.",
      "topics": [
        "plot_annual"
      ]
    },
    {
      "page": "plot_factor",
      "title": "Plot the temporally-dependent factors.",
      "topics": [
        "plot_factor"
      ]
    },
    {
      "page": "plot_fourier_bases",
      "title": "Visualize fourier bases.",
      "topics": [
        "plot_fourier_bases"
      ]
    },
    {
      "page": "plot_location",
      "title": "Plot a location's time series of estimated/predicted values.",
      "topics": [
        "plot_location"
      ]
    },
    {
      "page": "plot_spatial_param",
      "title": "Plot the spatially-dependent parameter for in-sample locations.",
      "topics": [
        "plot_spatial_param"
      ]
    },
    {
      "page": "plot_trace",
      "title": "Plot trace plots",
      "topics": [
        "plot_trace"
      ]
    },
    {
      "page": "predictBSTFA",
      "title": "Estimate/predict values of the time series at a specific location.",
      "topics": [
        "predictBSTFA"
      ]
    },
    {
      "page": "utahDataList",
      "title": "Utah Minimum Temperatures",
      "topics": [
        "utahDataList"
      ]
    }
  ],
  "_readme": "https://github.com/cberrettstat/bstfa/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "boot",
    "broom",
    "car",
    "carData",
    "class",
    "classInt",
    "cli",
    "coda",
    "colorspace",
    "corrplot",
    "cowplot",
    "cpp11",
    "DBI",
    "Deriv",
    "doBy",
    "dplyr",
    "e1071",
    "farver",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "ggpubr",
    "ggrepel",
    "ggsci",
    "ggsignif",
    "glue",
    "gridExtra",
    "gtable",
    "isoband",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixcalc",
    "MatrixModels",
    "mcmc",
    "MCMCpack",
    "mgcv",
    "microbenchmark",
    "minqa",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "npreg",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "polynom",
    "proxy",
    "purrr",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "rstatix",
    "s2",
    "S7",
    "scales",
    "scatterplot3d",
    "sf",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "units",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk",
    "zoo"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "BSTFA-Vignette.Rmd",
      "filename": "BSTFA-Vignette.html",
      "title": "BSTFA Package",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Intended Audience",
        "Motivation",
        "What is Implemented?",
        "Model-Fitting Functions",
        "Understanding Output",
        "Interpolation",
        "Visualization",
        "Speed",
        "Methodology",
        "Model",
        "Linear Component",
        "Seasonal Component",
        "Factor Analysis Component",
        "Residual Component",
        "Basis Functions",
        "Eigenvector Basis Functions",
        "Fourier Basis Functions",
        "Spatio-Temporal Factor Analysis using Basis Functions",
        "Useful Features",
        "Fixing Factors",
        "Basis Function Details",
        "Fourier Bases",
        "Bisquare Bases",
        "Thin-Plate Spline Bases",
        "Choosing Basis Functions",
        "Assessing MCMC Convergence",
        "Appendices",
        "Computation Notes",
        "References"
      ],
      "created": "2025-05-22 18:45:09",
      "modified": "2025-07-30 18:50:41",
      "commits": 13
    }
  ],
  "_score": 4.8750612633917,
  "_indexed": true,
  "_nocasepkg": "bstfa",
  "_universes": [
    "cberrettstat"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-13T18:20:01.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "a292b37340f66b705801d947f524e5c0b04fb734",
      "fileid": "2151a2aff771e6c5f1de07e6fc15ae9086375810cfd330febfa15c15f35867b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-13T18:19:13.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "a292b37340f66b705801d947f524e5c0b04fb734",
      "fileid": "3a03f81fce74578f2a7b792c75165ceb93832ca36cda4f26b74c6687dd787a5e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-13T18:19:50.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "a292b37340f66b705801d947f524e5c0b04fb734",
      "fileid": "2b293dfd436720854cb7de77581d875c8f3b922de97f2f362fed0986c90173b6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-13T18:19:46.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "a292b37340f66b705801d947f524e5c0b04fb734",
      "fileid": "61e16594d889ae212f2283913974064cf03d27979106275cfdcf6e3cdabc1715",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-13T18:18:53.000Z",
      "arch": "aarch64",
      "commit": "a292b37340f66b705801d947f524e5c0b04fb734",
      "fileid": "519e65296543033c9fb232725695080c41caecad1e0d290d6e9249a1c5d5f34c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-13T18:20:32.000Z",
      "arch": "x86_64",
      "commit": "a292b37340f66b705801d947f524e5c0b04fb734",
      "fileid": "0d63ef8431c84144c018b76efd62e285a82dbf013fd67a37370738a7029532b5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-13T18:18:50.000Z",
      "arch": "aarch64",
      "commit": "a292b37340f66b705801d947f524e5c0b04fb734",
      "fileid": "3bb664466edbf6ea4d69476d3d9841660f2338355584f81b8d9bed2a5fb03e8e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-13T18:20:15.000Z",
      "arch": "x86_64",
      "commit": "a292b37340f66b705801d947f524e5c0b04fb734",
      "fileid": "ffcb06fce39c16608794c7e171b178f2663eab4627a3a08a16f14c6956bfe0d4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-13T18:17:47.000Z",
      "arch": "x86_64",
      "commit": "a292b37340f66b705801d947f524e5c0b04fb734",
      "fileid": "d3fdf12ea905c8a7b1a363cdf018ce8c409625ee4f68b4873597852be27172ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-13T18:17:48.000Z",
      "arch": "x86_64",
      "commit": "a292b37340f66b705801d947f524e5c0b04fb734",
      "fileid": "285b9f964d8304d972ec730b2ffdd96297bdb773cbf2926e3034aedcdca4cc5f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-13T18:18:09.000Z",
      "arch": "x86_64",
      "commit": "a292b37340f66b705801d947f524e5c0b04fb734",
      "fileid": "66f0460474696281f4518a137a7bed281a70c4c5a22cdc047d94a45415d46e5a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-05-22T09:35:12.000Z",
      "arch": "emscripten",
      "commit": "a292b37340f66b705801d947f524e5c0b04fb734",
      "fileid": "b6373c4848563727a87dd0b45acd7807299b8d008489678bedc60a4740058e20",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cberrettstat/actions/runs/25817593213"
    }
  ]
}