{
  "_id": "6ada306d343c88418cb71e73",
  "Package": "spifa",
  "Type": "Package",
  "Title": "Bayesian Spatial Item Factor Analysis",
  "Version": "0.1.0",
  "Encoding": "UTF-8",
  "Authors@R": "c(\nperson(c(\"Erick\", \"A.\"), \"Chacón-Montalván\", , \"erick.chaconmontalvan@wur.nl\",\nrole = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0001-8068-1034\")),\nperson(\"Emanuele\", \"Giorgi\", role = \"ctb\"),\nperson(\"Benjamin M.\", \"Taylor\", role = \"ctb\"))",
  "Description": "Fits spatial item factor analysis models for binary\nresponses, following Chacón-Montalván, E. A., Parry, L.,\nGiorgi, E., Torres, P., Orellana, J. D. Y., Moraga, P., and\nTaylor, B. M. (2025) <doi:10.1214/25-AOAS2072>, using full\nBayesian inference via adaptive Metropolis-Hastings within\nGibbs sampling and auxiliary variables with a probit link\nfunction. The latent factors are modelled as the sum of a\npredictor effect, a multivariate Gaussian process capturing\nspatial dependence, and a multivariate non-spatial term,\nallowing users to fit and predict spatially-referenced\nconstructs such as food insecurity or socioeconomic indices.\nStandard exploratory and confirmatory item factor analysis are\nsupported as particular cases, simply by dropping the spatial\nstructure.",
  "License": "GPL-3",
  "URL": "https://github.com/ErickChacon/spifa,\nhttps://ErickChacon.github.io/spifa/",
  "BugReports": "https://github.com/ErickChacon/spifa/issues",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-22 15:42:20 UTC",
    "User": "root"
  },
  "Author": "Erick A. Chacón-Montalván [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-8068-1034>), Emanuele Giorgi\n[ctb], Benjamin M. Taylor [ctb]",
  "Maintainer": "Erick A. Chacón-Montalván <erick.chaconmontalvan@wur.nl>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-10-22 10:30:02 UTC",
  "RemoteUrl": "https://github.com/cran/spifa",
  "RemoteRef": "HEAD",
  "RemoteSha": "68e38b172e47c2020d5c8524644c86d6681ba22d",
  "_user": "cran",
  "_type": "src",
  "_file": "spifa_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/36e064fe41d41ca98fbdcaf49b1acf924230625c2a4a7d01a473c46095b983d2",
  "_filesize": 6330468,
  "_sha256": "36e064fe41d41ca98fbdcaf49b1acf924230625c2a4a7d01a473c46095b983d2",
  "_expires": "2027-01-30T15:48:58.000Z",
  "_created": "2026-10-22T15:42:20.000Z",
  "_published": "2026-10-22T15:49:01.806Z",
  "_upstream": "https://github.com/cran/spifa",
  "_status": "success",
  "_maintainer": {
    "name": "Erick A. Chacón-Montalván",
    "email": "erick.chaconmontalvan@wur.nl",
    "orcid": "0000-0001-8068-1034"
  },
  "_jobs": [
    {
      "job": 119924553937,
      "time": 162,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12439155488"
    },
    {
      "job": 119924553998,
      "time": 219,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12438721464"
    },
    {
      "job": 119924553904,
      "time": 210,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12437349562"
    },
    {
      "job": 119920420534,
      "time": 456,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12436734920"
    },
    {
      "job": 119924553637,
      "time": 165,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12438626939"
    },
    {
      "job": 119924553692,
      "time": 300,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12439260613"
    },
    {
      "job": 119924553652,
      "time": 193,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12438038708"
    },
    {
      "job": 119924553673,
      "time": 289,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12439040951"
    },
    {
      "job": 119924553591,
      "time": 204,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12438158385"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/39806238761",
  "_commit": {
    "id": "68e38b172e47c2020d5c8524644c86d6681ba22d",
    "author": "Erick A. Chacón-Montalván <erick.chaconmontalvan@wur.nl>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1792665002
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "RcppTN",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.13",
      "role": "Imports"
    },
    {
      "package": "RcppTN",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "role": "Imports"
    },
    {
      "package": "ggridges",
      "role": "Imports"
    },
    {
      "package": "patchwork",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "mirt",
      "role": "Suggests"
    },
    {
      "package": "gstat",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-43",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-10-22"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/spifa"
  },
  "_devurl": "https://github.com/erickchacon/spifa",
  "_pkgdown": "https://ErickChacon.github.io/spifa/",
  "_searchresults": 61,
  "_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/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/spifa.html"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-10-22"
    }
  ],
  "_exports": [
    "dic",
    "plot_density",
    "plot_interval",
    "plot_predict",
    "plot_trace",
    "spifa"
  ],
  "_datasets": [
    {
      "name": "ipixuna",
      "title": "Simulated Food Insecurity Survey Data for Ipixuna",
      "object": "ipixuna",
      "file": "ipixuna.RData",
      "class": [
        "sf",
        "data.frame"
      ],
      "fields": [
        "id",
        "wealth",
        "items",
        "geometry"
      ],
      "rows": 100,
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "spifa-package",
      "title": "spifa: Bayesian Spatial Item Factor Analysis",
      "topics": [
        "spifa-package"
      ]
    },
    {
      "page": "dic",
      "title": "Deviance Information Criterion",
      "topics": [
        "dic"
      ]
    },
    {
      "page": "dic.spifa",
      "title": "Deviance Information Criterion for a spifa Model",
      "topics": [
        "dic.spifa"
      ]
    },
    {
      "page": "ipixuna",
      "title": "Simulated Food Insecurity Survey Data for Ipixuna",
      "topics": [
        "ipixuna"
      ]
    },
    {
      "page": "plot_density",
      "title": "Density Plot of spifa Posterior Samples",
      "topics": [
        "plot_density"
      ]
    },
    {
      "page": "plot_interval",
      "title": "Interval Plot of spifa Posterior Samples",
      "topics": [
        "plot_interval"
      ]
    },
    {
      "page": "plot_predict",
      "title": "Map Posterior Predictions from a Fitted spifa Model",
      "topics": [
        "plot_predict"
      ]
    },
    {
      "page": "plot_trace",
      "title": "Trace Plot of spifa Posterior Samples",
      "topics": [
        "plot_trace"
      ]
    },
    {
      "page": "plot.spifa",
      "title": "Default Plot of spifa Posterior Samples",
      "topics": [
        "plot.spifa"
      ]
    },
    {
      "page": "predict.spifa",
      "title": "Predict the Latent Factors of a spifa Model",
      "topics": [
        "predict.spifa"
      ]
    },
    {
      "page": "print.spifa",
      "title": "Print spifa Posterior Samples",
      "topics": [
        "print.spifa"
      ]
    },
    {
      "page": "spifa",
      "title": "Bayesian Spatial Item Factor Analysis",
      "topics": [
        "spifa"
      ]
    },
    {
      "page": "summary.spifa",
      "title": "Summarise spifa Posterior Samples",
      "topics": [
        "summary.spifa"
      ]
    },
    {
      "page": "update.spifa",
      "title": "Continue Sampling from the Posterior of a spifa Model",
      "topics": [
        "update.spifa"
      ]
    }
  ],
  "_readme": "https://github.com/cran/spifa/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "checkmate",
    "class",
    "classInt",
    "cli",
    "cpp11",
    "DBI",
    "distributional",
    "dplyr",
    "e1071",
    "farver",
    "generics",
    "ggplot2",
    "ggridges",
    "glue",
    "gtable",
    "isoband",
    "KernSmooth",
    "labeling",
    "lifecycle",
    "magrittr",
    "matrixStats",
    "numDeriv",
    "patchwork",
    "pillar",
    "pkgconfig",
    "posterior",
    "proxy",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppTN",
    "rlang",
    "s2",
    "S7",
    "scales",
    "sf",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "units",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "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": "vg03-advanced-features.Rmd",
      "filename": "vg03-advanced-features.html",
      "title": "Advanced features",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Restrictions and priors",
        "constraints",
        "priors",
        "Fit with constraints and priors",
        "Continue sampling",
        "Compare models with DIC"
      ],
      "created": "2026-10-22 10:30:02",
      "modified": "2026-10-22 10:30:02",
      "commits": 1
    },
    {
      "source": "spifa.Rmd",
      "filename": "spifa.html",
      "title": "Bayesian Spatial Item Factor Analysis",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Ipixuna data",
        "Sample from the posterior",
        "Restrictions",
        "Priors",
        "Sampling",
        "Summarise and visualize samples",
        "Summary",
        "Plot",
        "Plotting functions",
        "Trace plots",
        "Density plots",
        "Interval plots",
        "Predict the latent factors",
        "Observed locations",
        "New locations",
        "References"
      ],
      "created": "2026-10-22 10:30:02",
      "modified": "2026-10-22 10:30:02",
      "commits": 1
    },
    {
      "source": "vg01-prepare-data.Rmd",
      "filename": "vg01-prepare-data.html",
      "title": "Data preparation",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulating a raw questionnaire",
        "Data for spifa()",
        "Missing values",
        "Missing item responses",
        "Missing predictor values"
      ],
      "created": "2026-10-22 10:30:02",
      "modified": "2026-10-22 10:30:02",
      "commits": 1
    },
    {
      "source": "vg04-integrated-workflow.Rmd",
      "filename": "vg04-integrated-workflow.html",
      "title": "Integrated workflow",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Step 1: Discrimination structure with mirt",
        "Step 2: Spatial range with gstat",
        "Estimate the latent factors",
        "Evaluate predictors effects",
        "Evaluate the spatial structure",
        "Step 3: Spatial modelling with spifa",
        "Visualize",
        "Predict"
      ],
      "created": "2026-10-22 10:30:02",
      "modified": "2026-10-22 10:30:02",
      "commits": 1
    },
    {
      "source": "vg02-model-types.Rmd",
      "filename": "vg02-model-types.html",
      "title": "Model types",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Exploratory item factor analysis (EIFA)",
        "Confirmatory item factor analysis (CIFA)",
        "CIFA model with predictors",
        "Spatial item factor analysis (SPIFA)",
        "SPIFA model with predictors"
      ],
      "created": "2026-10-22 10:30:02",
      "modified": "2026-10-22 10:30:02",
      "commits": 1
    }
  ],
  "_score": 4.183269843682805,
  "_indexed": false,
  "_nocasepkg": "spifa",
  "_universes": [
    "cran",
    "erickchacon"
  ],
  "_indexurl": "https://erickchacon.r-universe.dev/spifa",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-22T15:45:03.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "68e38b172e47c2020d5c8524644c86d6681ba22d",
      "fileid": "https://r2.ropensci.org/e4fc0d958c2e2a531ee9bd679a4c3cf102fb2f46d1ae485d83b86c0a183cb557",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39806238761"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-22T15:45:33.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "68e38b172e47c2020d5c8524644c86d6681ba22d",
      "fileid": "https://r2.ropensci.org/843d6f8e3c7993eeaf53f7ef382cdfbd579e201b25fe8e88eba2c14c4ef809b8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39806238761"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-22T15:45:26.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "68e38b172e47c2020d5c8524644c86d6681ba22d",
      "fileid": "https://r2.ropensci.org/9861fb0a8de2afc40770e24ccbc9ee9243f3a95112f598a7f8e51953ffe2f6eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39806238761"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-22T15:45:28.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "68e38b172e47c2020d5c8524644c86d6681ba22d",
      "fileid": "https://r2.ropensci.org/aa025ed2085a82b8b32ab6d1a2251590b8cf19071c9943eb9d57301c4da4649f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39806238761"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-10-22T15:45:47.000Z",
      "arch": "emscripten",
      "commit": "68e38b172e47c2020d5c8524644c86d6681ba22d",
      "fileid": "https://r2.ropensci.org/286408ea9183953bbb4c5b059ea742496854be7dcf0bc4d6455e4243bdf40061",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39806238761"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-22T15:46:26.000Z",
      "arch": "aarch64",
      "commit": "68e38b172e47c2020d5c8524644c86d6681ba22d",
      "fileid": "https://r2.ropensci.org/8a18d61f6f8fbb1d498c260d470ca7750a614e60ea7e54d74eb3cf8ef6bd6506",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39806238761"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-22T15:44:23.000Z",
      "arch": "x86_64",
      "commit": "68e38b172e47c2020d5c8524644c86d6681ba22d",
      "fileid": "https://r2.ropensci.org/ae417a7243464621b15561b7ab96c7f95b555ca432eb545d032cd61215e9a704",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39806238761"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-22T15:46:29.000Z",
      "arch": "aarch64",
      "commit": "68e38b172e47c2020d5c8524644c86d6681ba22d",
      "fileid": "https://r2.ropensci.org/2d7a1b15dcd4e865c3ac44cbb37eabed81186c6911889ac82039ce949a872766",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39806238761"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-22T15:44:50.000Z",
      "arch": "x86_64",
      "commit": "68e38b172e47c2020d5c8524644c86d6681ba22d",
      "fileid": "https://r2.ropensci.org/3c9cd1a35da5ad8d8e0881418a7df5e1611fbf04b377b533e4c656a7e4343b92",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39806238761"
    }
  ]
}