{
  "_id": "6ab107953d719c1f84085f7f",
  "Package": "DIFM",
  "Type": "Package",
  "Title": "Dynamic ICAR Spatiotemporal Factor Models",
  "Version": "1.0.1",
  "Date": "2025-11-07",
  "Authors@R": "c(person(\"Hwasoo\", \"Shin\", role = c(\"aut\", \"cre\"), email = \"hshin2@hfhs.org\"), person(\"Marco\", \"Ferreira\", role = \"aut\") )",
  "Description": "Bayesian factor models are effective tools for dimension\nreduction. This is especially applicable to multivariate\nlarge-scale datasets. It allows researchers to understand the\nlatent factors of the data which are the linear or non-linear\ncombination of the variables. Dynamic Intrinsic Conditional\nAutocorrelative Priors (ICAR) Spatiotemporal Factor Models\n'DIFM' package provides function to run Markov Chain Monte\nCarlo (MCMC), evaluation methods and visual plots from Shin and\nFerreira (2023)<doi:10.1016/j.spasta.2023.100763>. Our method\nis a class of Bayesian factor model which can account for\nspatial and temporal correlations. By incorporating these\ncorrelations, the model can capture specific behaviors and\nprovide predictions.",
  "License": "GPL (>= 2)",
  "RoxygenNote": "7.2.3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-09-21 10:24:25 UTC",
    "User": "root"
  },
  "Author": "Hwasoo Shin [aut, cre], Marco Ferreira [aut]",
  "Maintainer": "Hwasoo Shin <hshin2@hfhs.org>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-11-11 08:10:22 UTC",
  "RemoteUrl": "https://github.com/cran/DIFM",
  "RemoteRef": "HEAD",
  "RemoteSha": "a5f9d508ebedc07ae357886cb1e895db44728dee",
  "_user": "cran",
  "_type": "src",
  "_file": "DIFM_1.0.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/041e55676e7e58d87cd5854e1bcd52840e2b85b3cb73e3b0c3c2b109d3c45a04",
  "_filesize": 1371283,
  "_sha256": "041e55676e7e58d87cd5854e1bcd52840e2b85b3cb73e3b0c3c2b109d3c45a04",
  "_expires": "2026-12-30T10:31:47.000Z",
  "_created": "2026-09-21T10:24:25.000Z",
  "_published": "2026-09-21T10:31:49.378Z",
  "_jobs": [
    {
      "job": 106297812553,
      "time": 173,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10633806637"
    },
    {
      "job": 106297812304,
      "time": 194,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10633447687"
    },
    {
      "job": 106297812414,
      "time": 200,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10632599888"
    },
    {
      "job": 106297812317,
      "time": 186,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10633921157"
    },
    {
      "job": 106296249513,
      "time": 332,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10633791267"
    },
    {
      "job": 106297812399,
      "time": 199,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10633512421"
    },
    {
      "job": 106297812392,
      "time": 264,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10633642457"
    },
    {
      "job": 106297812416,
      "time": 216,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10633258123"
    },
    {
      "job": 106297812404,
      "time": 364,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10633886666"
    },
    {
      "job": 106297812398,
      "time": 180,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10632889484"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/35588115253",
  "_status": "success",
  "_upstream": "https://github.com/cran/DIFM",
  "_commit": {
    "id": "a5f9d508ebedc07ae357886cb1e895db44728dee",
    "author": "Hwasoo Shin <hshin2@hfhs.org>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.1\n",
    "time": 1762848622
  },
  "_maintainer": {
    "name": "Hwasoo Shin",
    "email": "hshin2@hfhs.org"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.10",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "LaplacesDemon",
      "role": "Imports"
    },
    {
      "package": "spdep",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "sp",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-46",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.1",
      "date": "2025-11-11"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "shwasoo",
      "count": 1,
      "uuid": 54639923
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 282,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/DIFM"
  },
  "_searchresults": 2,
  "_topics": [
    "openblas",
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/DIFM.html",
    "extra/manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0",
      "date": "2024-04-12"
    },
    {
      "version": "1.0.1",
      "date": "2025-11-11"
    }
  ],
  "_exports": [
    "buildH",
    "difm.hyp.parm",
    "difm.model.attributes",
    "DIFMcpp",
    "DIFMR",
    "marginal_d_cpp",
    "marginal.d",
    "permutation.order",
    "permutation.scale",
    "plot_B.CI",
    "plot_B.spatial",
    "plot_sigma2.CI",
    "plot_tau.CI",
    "plot_X.CI"
  ],
  "_datasets": [
    {
      "name": "Property",
      "title": "Property crime in United States",
      "object": "Property",
      "class": [
        "data.frame"
      ],
      "fields": [
        "AZ",
        "CA",
        "CO",
        "ID",
        "MT",
        "NV",
        "NM",
        "OR",
        "UT",
        "WA",
        "WY"
      ],
      "rows": 60,
      "table": true,
      "tojson": true
    },
    {
      "name": "Violent",
      "title": "Violent crime data in United States",
      "object": "Violent",
      "class": [
        "data.frame"
      ],
      "fields": [
        "AZ",
        "CA",
        "CO",
        "ID",
        "MT",
        "NV",
        "NM",
        "OR",
        "UT",
        "WA",
        "WY"
      ],
      "rows": 60,
      "table": true,
      "tojson": true
    },
    {
      "name": "WestStates",
      "title": "Westen states in United States",
      "object": "WestStates",
      "class": [
        "SpatialPolygonsDataFrame"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "DIFM-package",
      "title": "Dynamic ICAR Spatiotemporal Factor Models",
      "topics": [
        "DIFM-package",
        "DIFM"
      ]
    },
    {
      "page": "buildH",
      "title": "Spatial dependence matrix of the factor loadings",
      "topics": [
        "buildH"
      ]
    },
    {
      "page": "difm.hyp.parm",
      "title": "Hyperparameters for DIFM",
      "topics": [
        "difm.hyp.parm"
      ]
    },
    {
      "page": "difm.model.attributes",
      "title": "Initialize model attributes for DIFM",
      "topics": [
        "difm.model.attributes"
      ]
    },
    {
      "page": "DIFMcpp",
      "title": "Run Dynamic ICAR Factors Model (DIFM), with C++ codes",
      "topics": [
        "DIFMcpp"
      ]
    },
    {
      "page": "DIFMR",
      "title": "Run Dynamic ICAR Factors Model (DIFM)",
      "topics": [
        "DIFMR"
      ]
    },
    {
      "page": "marginal_d_cpp",
      "title": "Marginal predictive density",
      "topics": [
        "marginal_d_cpp"
      ]
    },
    {
      "page": "marginal.d",
      "title": "Marginal predictive density",
      "topics": [
        "marginal.d"
      ]
    },
    {
      "page": "permutation.order",
      "title": "Order of permutation by the largest absolute value in each eigenvector",
      "topics": [
        "permutation.order"
      ]
    },
    {
      "page": "permutation.scale",
      "title": "Permute the dataset by the largest absolute value in each eigenvector, and scale",
      "topics": [
        "permutation.scale"
      ]
    },
    {
      "page": "plot_B.CI",
      "title": "Credible interval plot of factor loadings",
      "topics": [
        "plot_B.CI"
      ]
    },
    {
      "page": "plot_B.spatial",
      "title": "Spatial plots of factor loadings",
      "topics": [
        "plot_B.spatial"
      ]
    },
    {
      "page": "plot_sigma2.CI",
      "title": "A credible interval plot of posterior of sigma squared",
      "topics": [
        "plot_sigma2.CI"
      ]
    },
    {
      "page": "plot_tau.CI",
      "title": "Credible interval plot of factor loadings variance",
      "topics": [
        "plot_tau.CI"
      ]
    },
    {
      "page": "plot_X.CI",
      "title": "Credible interval plot of common factors",
      "topics": [
        "plot_X.CI"
      ]
    },
    {
      "page": "Property",
      "title": "Property crime in United States",
      "topics": [
        "Property"
      ]
    },
    {
      "page": "Violent",
      "title": "Violent crime data in United States",
      "topics": [
        "Violent"
      ]
    },
    {
      "page": "WestStates",
      "title": "Westen states in United States",
      "topics": [
        "WestStates"
      ]
    }
  ],
  "_rundeps": [
    "boot",
    "class",
    "classInt",
    "cli",
    "DBI",
    "deldir",
    "e1071",
    "glue",
    "gridExtra",
    "gtable",
    "KernSmooth",
    "LaplacesDemon",
    "lattice",
    "lifecycle",
    "Matrix",
    "proxy",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "s2",
    "sf",
    "sp",
    "spData",
    "spdep",
    "units",
    "wk"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "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.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_vignettes": [
    {
      "source": "DIFMvignette.Rmd",
      "filename": "DIFMvignette.html",
      "title": "DIFM:Dynamic ICAR Spatiotemporal Factor Models",
      "author": "Hwasoo Shin, Marco A. R. Ferreira",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Model Description",
        "Examples",
        "Step 1: Read and explore the data",
        "Step 2: Run DIFM with range of factors.",
        "Reference"
      ],
      "created": "2024-04-13 02:27:03",
      "modified": "2024-04-13 02:27:03",
      "commits": 1
    }
  ],
  "_score": 2,
  "_indexed": true,
  "_nocasepkg": "difm",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-09-21T10:27:15.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "a5f9d508ebedc07ae357886cb1e895db44728dee",
      "fileid": "https://r2.ropensci.org/bd63da075539e0dbca95abd9f0b82afb3c4754be949716a3864293c7fc886e4b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/35588115253"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-09-21T10:27:20.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "a5f9d508ebedc07ae357886cb1e895db44728dee",
      "fileid": "https://r2.ropensci.org/8beb6dabbd35df09ce4df9169f56a5bce778dcdb7332c3c44a824e1d1569adbd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/35588115253"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-09-21T10:27:45.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "a5f9d508ebedc07ae357886cb1e895db44728dee",
      "fileid": "https://r2.ropensci.org/86873efa56794e046450de06ae85353a598e18ec1a33c3af26d83547f0e73697",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/35588115253"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-09-21T10:27:18.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "a5f9d508ebedc07ae357886cb1e895db44728dee",
      "fileid": "https://r2.ropensci.org/1f37744dad0fbc247fff534be1ecad0577e5abb0c2027125716286bcd05e5985",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/35588115253"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.1",
      "date": "2026-09-21T10:28:00.000Z",
      "arch": "emscripten",
      "commit": "a5f9d508ebedc07ae357886cb1e895db44728dee",
      "fileid": "https://r2.ropensci.org/ad804e46693f887af34fb91f47a99f5e681d70491b0b614b2229e9c17b5afe43",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/35588115253"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-09-21T10:28:10.000Z",
      "arch": "aarch64",
      "commit": "a5f9d508ebedc07ae357886cb1e895db44728dee",
      "fileid": "https://r2.ropensci.org/01eefc5de18cd51524ab70466847e4b76acd1d79a3e160e0b688d41b2e338dfc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/35588115253"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-09-21T10:26:18.000Z",
      "arch": "x86_64",
      "commit": "a5f9d508ebedc07ae357886cb1e895db44728dee",
      "fileid": "https://r2.ropensci.org/1975ac4c2511fc7424aed7a8479d7a827bb6a55a5903a673931c51071e345745",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/35588115253"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-09-21T10:29:50.000Z",
      "arch": "aarch64",
      "commit": "a5f9d508ebedc07ae357886cb1e895db44728dee",
      "fileid": "https://r2.ropensci.org/4a43124ea81d5cd36fb1eb0031ceafbf8afd62a591d987cf2a2552dd559bd35c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/35588115253"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-09-21T10:26:21.000Z",
      "arch": "x86_64",
      "commit": "a5f9d508ebedc07ae357886cb1e895db44728dee",
      "fileid": "https://r2.ropensci.org/13141ef756a04fca7169760f8ba974370d6019f6dc0a070bd86fb7499eb34e84",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/35588115253"
    }
  ]
}