{
  "_id": "6a1c53001d7bb097a0a306b0",
  "Package": "Hmsc",
  "Title": "Hierarchical Model of Species Communities",
  "Type": "Package",
  "Version": "3.4-0",
  "Author": "Gleb Tikhonov [aut], Otso Ovaskainen [aut, cre]\n(<https://orcid.org/0000-0001-9750-4421>), Jari Oksanen [aut],\nMelinda de Jonge [aut], Oystein Opedal [aut], Tad Dallas [aut]",
  "Maintainer": "Otso Ovaskainen <otso.t.ovaskainen@jyu.fi>",
  "Authors@R": "c(person(given = \"Gleb\", family=\"Tikhonov\", role=\"aut\"),\nperson(given=\"Otso\", family=\"Ovaskainen\",\nemail=\"otso.t.ovaskainen@jyu.fi\",\ncomment = c(ORCID=\"0000-0001-9750-4421\"), role=c(\"aut\", \"cre\")),\nperson(given=\"Jari\", family=\"Oksanen\", role=c(\"aut\"),\nemail=\"jhoksane@gmail.com\"),\nperson(given=\"Melinda\", family=c(\"de\", \"Jonge\"), role=\"ctb\"),\nperson(given=\"Oystein\", family=\"Opedal\", role=\"ctb\"),\nperson(given=\"Tad\", family=\"Dallas\", role=\"ctb\"),\nperson(given=\"Tuomas\", family=\"Rossi\", role=\"ctb\"))",
  "Description": "Hierarchical Modelling of Species Communities (HMSC) is a\nmodel-based approach for analyzing community ecological data.\nThis package implements it in the Bayesian framework with Gibbs\nMarkov chain Monte Carlo (MCMC) sampling (Tikhonov et al.\n(2020) <doi:10.1111/2041-210X.13345>).",
  "License": "GPL-3 | file LICENSE",
  "URL": "https://www.helsinki.fi/en/researchgroups/statistical-ecology/software/hmsc",
  "BugReports": "https://github.com/hmsc-r/HMSC/issues/",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "VignetteBuilder": "R.rsp",
  "Config/roxygen2/version": "8.0.0",
  "Repository": "https://hmsc-r.r-universe.dev",
  "Date/Publication": "2026-05-31 14:46:05 UTC",
  "RemoteUrl": "https://github.com/hmsc-r/hmsc",
  "RemoteRef": "HEAD",
  "RemoteSha": "cd1de3824efe7b03f5ff8ab10ef9fb601c908d59",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-31 15:22:00 UTC",
    "User": "root"
  },
  "MD5sum": "12cae3179a3c6005e250903a7a03be57",
  "_user": "hmsc-r",
  "_type": "src",
  "_file": "Hmsc_3.4-0.tar.gz",
  "_fileid": "8f55018486dec383303a79f31fe64a4f1ffeb2517b90b915ac95209dd1a94983",
  "_filesize": 2757064,
  "_sha256": "8f55018486dec383303a79f31fe64a4f1ffeb2517b90b915ac95209dd1a94983",
  "_created": "2026-05-31T15:22:00.000Z",
  "_published": "2026-05-31T15:25:52.866Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78736019526,
      "time": 183,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7317853999"
    },
    {
      "job": 78736019525,
      "time": 178,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7317853418"
    },
    {
      "job": 78736019535,
      "time": 172,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7317852887"
    },
    {
      "job": 78736019539,
      "time": 180,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7317853641"
    },
    {
      "job": 78735766119,
      "time": 252,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7317835149"
    },
    {
      "job": 78736019524,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7317847089"
    },
    {
      "job": 78736019541,
      "time": 125,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7317848073"
    },
    {
      "job": 78736019538,
      "time": 131,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7317848911"
    },
    {
      "job": 78736019543,
      "time": 142,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7317849880"
    }
  ],
  "_buildurl": "https://github.com/r-universe/hmsc-r/actions/runs/26716441096",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/hmsc-r/hmsc",
  "_commit": {
    "id": "cd1de3824efe7b03f5ff8ab10ef9fb601c908d59",
    "author": "Gleb Tikhonov <gleb.tikhonov@helsinki.fi>",
    "committer": "Gleb Tikhonov <gleb.tikhonov@helsinki.fi>",
    "message": "Relocate phyloFast detailed description to be just above Loff parameter in Hmsc.R Roxygen comments\n",
    "time": 1780238765
  },
  "_maintainer": {
    "name": "Otso Ovaskainen",
    "email": "otso.t.ovaskainen@jyu.fi",
    "orcid": "0000-0001-9750-4421"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.0.2",
      "role": "Depends"
    },
    {
      "package": "coda",
      "role": "Depends"
    },
    {
      "package": "abind",
      "role": "Imports"
    },
    {
      "package": "ape",
      "role": "Imports"
    },
    {
      "package": "BayesLogit",
      "role": "Imports"
    },
    {
      "package": "fields",
      "role": "Imports"
    },
    {
      "package": "FNN",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "matrixStats",
      "role": "Imports"
    },
    {
      "package": "MCMCpack",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "nnet",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "pracma",
      "role": "Imports"
    },
    {
      "package": "pROC",
      "role": "Imports"
    },
    {
      "package": "sp",
      "role": "Imports"
    },
    {
      "package": "statmod",
      "role": "Imports"
    },
    {
      "package": "truncnorm",
      "role": "Imports"
    },
    {
      "package": "R.rsp",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "corrplot",
      "role": "Suggests"
    }
  ],
  "_owner": "hmsc-r",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-44",
      "n": 2
    },
    {
      "week": "2025-51",
      "n": 2
    },
    {
      "week": "2026-14",
      "n": 1
    },
    {
      "week": "2026-15",
      "n": 1
    },
    {
      "week": "2026-22",
      "n": 7
    }
  ],
  "_tags": [
    {
      "name": "v3.3-7",
      "date": "2025-08-26"
    }
  ],
  "_stars": 119,
  "_contributors": [
    {
      "user": "jarioksa",
      "count": 559,
      "uuid": 1432933
    },
    {
      "user": "gtikhonov",
      "count": 239,
      "uuid": 16008341
    },
    {
      "user": "melindadejonge",
      "count": 71,
      "uuid": 50199149
    },
    {
      "user": "oysteiop",
      "count": 43,
      "uuid": 39293697
    },
    {
      "user": "taddallas",
      "count": 8,
      "uuid": 5226753
    },
    {
      "user": "ovaskain",
      "count": 4,
      "uuid": 17925734
    },
    {
      "user": "jonpeake",
      "count": 2,
      "uuid": 27690999
    }
  ],
  "_userbio": {
    "uuid": 48319102,
    "type": "organization",
    "name": "hmsc-r"
  },
  "_downloads": {
    "count": 2531,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/Hmsc"
  },
  "_mentions": 4,
  "_devurl": "https://github.com/hmsc-r/hmsc",
  "_searchresults": 676,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/Hmsc.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/hmsc-r/hmsc",
  "_realowner": "hmsc-r",
  "_cranurl": true,
  "_releases": [
    {
      "version": "3.0-2",
      "date": "2019-10-13"
    },
    {
      "version": "3.0-4",
      "date": "2019-12-16"
    },
    {
      "version": "3.0-6",
      "date": "2020-03-19"
    },
    {
      "version": "3.0-9",
      "date": "2020-10-29"
    },
    {
      "version": "3.0-11",
      "date": "2021-02-24"
    },
    {
      "version": "3.0-13",
      "date": "2022-08-11"
    },
    {
      "version": "3.3-7",
      "date": "2025-08-28"
    }
  ],
  "_exports": [
    "alignPosterior",
    "biPlot",
    "computeAssociations",
    "computeDataParameters",
    "computePredictedValues",
    "computeSAIR",
    "computeVariancePartitioning",
    "computeWAIC",
    "constructGradient",
    "constructKnots",
    "convertToCodaObject",
    "coralCombine",
    "coralGetRareSpeciesPriors",
    "coralGetXDataExt",
    "coralPlotBeta",
    "coralPredict",
    "coralPreprocess",
    "coralSplitToBatches",
    "coralTrain",
    "createPartition",
    "evaluateModelFit",
    "getPostEstimate",
    "Hmsc",
    "HmscRandomLevel",
    "importPosteriorFromHPC",
    "pcomputePredictedValues",
    "plotBeta",
    "plotGamma",
    "plotGradient",
    "plotVariancePartitioning",
    "poolMcmcChains",
    "predictLatentFactor",
    "prepareGradient",
    "sampleMcmc",
    "setPriors",
    "taxToPhylo"
  ],
  "_datasets": [
    {
      "name": "TD",
      "title": "Simulated data and a fitted Hmsc model for a small species community.",
      "object": "TD",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "alignPosterior",
      "title": "alignPosterior",
      "topics": [
        "alignPosterior"
      ]
    },
    {
      "page": "biPlot",
      "title": "biPlot",
      "topics": [
        "biPlot"
      ]
    },
    {
      "page": "c.Hmsc",
      "title": "Combine Posterior Samples of Several Hmsc Models",
      "topics": [
        "c.Hmsc"
      ]
    },
    {
      "page": "computeAssociations",
      "title": "computeAssociations",
      "topics": [
        "computeAssociations"
      ]
    },
    {
      "page": "computeDataParameters",
      "title": "computeDataParameters",
      "topics": [
        "computeDataParameters"
      ]
    },
    {
      "page": "computeInitialParameters",
      "title": "computeInitialParameters",
      "topics": [
        "computeInitialParameters"
      ]
    },
    {
      "page": "computePredictedValues",
      "title": "computePredictedValues",
      "topics": [
        "computePredictedValues",
        "pcomputePredictedValues"
      ]
    },
    {
      "page": "computeSAIR",
      "title": "computeSAIR",
      "topics": [
        "computeSAIR"
      ]
    },
    {
      "page": "computeVariancePartitioning",
      "title": "computeVariancePartitioning",
      "topics": [
        "computeVariancePartitioning"
      ]
    },
    {
      "page": "computeWAIC",
      "title": "computeWAIC",
      "topics": [
        "computeWAIC"
      ]
    },
    {
      "page": "constructGradient",
      "title": "constructGradient",
      "topics": [
        "constructGradient"
      ]
    },
    {
      "page": "constructKnots",
      "title": "constructKnots",
      "topics": [
        "constructKnots"
      ]
    },
    {
      "page": "convertToCodaObject",
      "title": "convertToCodaObject",
      "topics": [
        "convertToCodaObject"
      ]
    },
    {
      "page": "coralCombine",
      "title": "coralCombine",
      "topics": [
        "coralCombine"
      ]
    },
    {
      "page": "coralGetRareSpeciesPriors",
      "title": "coralGetRareSpeciesPriors",
      "topics": [
        "coralGetRareSpeciesPriors"
      ]
    },
    {
      "page": "coralGetXDataExt",
      "title": "coralGetXDataExt",
      "topics": [
        "coralGetXDataExt"
      ]
    },
    {
      "page": "coralPlotBeta",
      "title": "coralPlotBeta",
      "topics": [
        "coralPlotBeta"
      ]
    },
    {
      "page": "coralPredict",
      "title": "coralPredict",
      "topics": [
        "coralPredict"
      ]
    },
    {
      "page": "coralPreprocess",
      "title": "coralPreprocess",
      "topics": [
        "coralPreprocess"
      ]
    },
    {
      "page": "coralSplitToBatches",
      "title": "coralSplitToBatches",
      "topics": [
        "coralSplitToBatches"
      ]
    },
    {
      "page": "coralTrain",
      "title": "coralTrain",
      "topics": [
        "coralTrain"
      ]
    },
    {
      "page": "createPartition",
      "title": "createPartition",
      "topics": [
        "createPartition"
      ]
    },
    {
      "page": "evaluateModelFit",
      "title": "evaluateModelFit",
      "topics": [
        "evaluateModelFit"
      ]
    },
    {
      "page": "getPostEstimate",
      "title": "getPostEstimate",
      "topics": [
        "getPostEstimate"
      ]
    },
    {
      "page": "Hmsc",
      "title": "Hmsc",
      "topics": [
        "Hmsc"
      ]
    },
    {
      "page": "HmscRandomLevel",
      "title": "Create an 'Hmsc' random level",
      "topics": [
        "HmscRandomLevel"
      ]
    },
    {
      "page": "importPosteriorFromHPC",
      "title": "importPosteriorFromHPC",
      "topics": [
        "importPosteriorFromHPC"
      ]
    },
    {
      "page": "plotBeta",
      "title": "plotBeta",
      "topics": [
        "plotBeta"
      ]
    },
    {
      "page": "plotGamma",
      "title": "plotGamma",
      "topics": [
        "plotGamma"
      ]
    },
    {
      "page": "plotGradient",
      "title": "plotGradient",
      "topics": [
        "plotGradient"
      ]
    },
    {
      "page": "plotVariancePartitioning",
      "title": "plotVariancePartitioning",
      "topics": [
        "plotVariancePartitioning"
      ]
    },
    {
      "page": "poolMcmcChains",
      "title": "poolMcmcChains",
      "topics": [
        "poolMcmcChains"
      ]
    },
    {
      "page": "predict.Hmsc",
      "title": "predict",
      "topics": [
        "predict.Hmsc"
      ]
    },
    {
      "page": "predictLatentFactor",
      "title": "predictLatentFactor",
      "topics": [
        "predictLatentFactor"
      ]
    },
    {
      "page": "prepareGradient",
      "title": "prepareGradient",
      "topics": [
        "prepareGradient"
      ]
    },
    {
      "page": "sampleMcmc",
      "title": "sampleMCMC",
      "topics": [
        "sampleMcmc"
      ]
    },
    {
      "page": "samplePrior",
      "title": "samplePrior",
      "topics": [
        "samplePrior"
      ]
    },
    {
      "page": "setPriors",
      "title": "setPriors",
      "topics": [
        "setPriors"
      ]
    },
    {
      "page": "setPriors.Hmsc",
      "title": "setPriors.Hmsc",
      "topics": [
        "setPriors.Hmsc"
      ]
    },
    {
      "page": "setPriors.HmscRandomLevel",
      "title": "setPriors.HmscRandomLevel",
      "topics": [
        "setPriors.HmscRandomLevel"
      ]
    },
    {
      "page": "taxToPhylo",
      "title": "Convert Taxonomy to Phylogenetic Tree",
      "topics": [
        "taxToPhylo"
      ]
    },
    {
      "page": "TD",
      "title": "Simulated data and a fitted Hmsc model for a small species community.",
      "topics": [
        "TD"
      ]
    }
  ],
  "_readme": "https://github.com/hmsc-r/hmsc/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "ape",
    "BayesLogit",
    "cli",
    "coda",
    "cpp11",
    "digest",
    "dotCall64",
    "farver",
    "fields",
    "FNN",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "maps",
    "MASS",
    "Matrix",
    "MatrixModels",
    "matrixStats",
    "mcmc",
    "MCMCpack",
    "nlme",
    "nnet",
    "pracma",
    "pROC",
    "quantreg",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "sp",
    "spam",
    "SparseM",
    "statmod",
    "survival",
    "truncnorm",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "vignette_3_multivariate_high.pdf.asis",
      "filename": "vignette_3_multivariate_high.pdf",
      "title": "Getting started with HMSC-R: high-dimensional multivariate models",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2019-04-23 07:08:35",
      "modified": "2019-07-24 10:54:51",
      "commits": 2
    },
    {
      "source": "vignette_2_multivariate_low.pdf.asis",
      "filename": "vignette_2_multivariate_low.pdf",
      "title": "Getting started with HMSC-R: low-dimensional multivariate models",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2019-04-23 07:08:35",
      "modified": "2019-07-24 10:54:51",
      "commits": 2
    },
    {
      "source": "vignette_4_spatial.pdf.asis",
      "filename": "vignette_4_spatial.pdf",
      "title": "Getting started with HMSC-R: spatial models",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2019-08-27 13:59:20",
      "modified": "2019-08-27 13:59:20",
      "commits": 1
    },
    {
      "source": "vignette_1_univariate.pdf.asis",
      "filename": "vignette_1_univariate.pdf",
      "title": "Getting started with HMSC-R: univariate models",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2019-04-23 07:08:35",
      "modified": "2019-07-24 10:54:51",
      "commits": 2
    },
    {
      "source": "vignette_5_performance.pdf.asis",
      "filename": "vignette_5_performance.pdf",
      "title": "Testing the performance of Hmsc with simulated data",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2019-12-17 17:45:14",
      "modified": "2019-12-17 17:45:14",
      "commits": 1
    }
  ],
  "_score": 10.785907057212084,
  "_indexed": true,
  "_nocasepkg": "hmsc",
  "_universes": [
    "hmsc-r"
  ],
  "_previous": "3.3-10",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.4-0",
      "date": "2026-05-31T15:24:23.000Z",
      "distro": "noble",
      "commit": "cd1de3824efe7b03f5ff8ab10ef9fb601c908d59",
      "fileid": "678d9b5ecb35a65012c24905f8c6f9848b5ff37fbcfeb873123c50c046f726f7",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/hmsc-r/actions/runs/26716441096"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.4-0",
      "date": "2026-05-31T15:24:23.000Z",
      "distro": "noble",
      "commit": "cd1de3824efe7b03f5ff8ab10ef9fb601c908d59",
      "fileid": "cad1f9878255c8d4f8e93159b846166a31db9ad71c06d7b46e6f2a2f2786e460",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/hmsc-r/actions/runs/26716441096"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.4-0",
      "date": "2026-05-31T15:24:41.000Z",
      "commit": "cd1de3824efe7b03f5ff8ab10ef9fb601c908d59",
      "fileid": "16b37847192f2138fed0cad59fe6b889a1ad0eca235250b06ea747547f26fc29",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/hmsc-r/actions/runs/26716441096"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.4-0",
      "date": "2026-05-31T15:24:38.000Z",
      "commit": "cd1de3824efe7b03f5ff8ab10ef9fb601c908d59",
      "fileid": "6608b521ca8a917fcf5eeaa3882c057cb6e7dd433784c62b963ba189a8ab8abf",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/hmsc-r/actions/runs/26716441096"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.4-0",
      "date": "2026-05-31T15:24:27.000Z",
      "commit": "cd1de3824efe7b03f5ff8ab10ef9fb601c908d59",
      "fileid": "0c148abd93e10245d1b0b8c5bb60eb7f036611c7324495bdf583d72f7a2b96aa",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hmsc-r/actions/runs/26716441096"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.4-0",
      "date": "2026-05-31T15:23:32.000Z",
      "commit": "cd1de3824efe7b03f5ff8ab10ef9fb601c908d59",
      "fileid": "ef15b7081081afbc2467eb4fb35e44ba5d95fcc638807e996acfe06c0b8d4ef3",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/hmsc-r/actions/runs/26716441096"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.4-0",
      "date": "2026-05-31T15:23:24.000Z",
      "commit": "cd1de3824efe7b03f5ff8ab10ef9fb601c908d59",
      "fileid": "90cb4bfeca24e3e107d784ebd8119567db003443c70e261b44022a14c3508067",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/hmsc-r/actions/runs/26716441096"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "3.4-0",
      "date": "2026-05-31T15:23:33.000Z",
      "commit": "cd1de3824efe7b03f5ff8ab10ef9fb601c908d59",
      "fileid": "01e6c7e49bf18ef96f2f7bdbdf17fa3f0d533d248e4e310760aef406199bf5b5",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/hmsc-r/actions/runs/26716441096"
    }
  ]
}