{
  "_id": "6a1056c6acfb0bcc41ca2d0d",
  "Type": "Package",
  "Package": "ERPM",
  "Title": "Exponential Random Partition Models",
  "Version": "0.2.0.9000",
  "Date": "2024-05-03",
  "Authors@R": "c(\nperson(\"Marion\", \"Hoffman\", , \"marion.hoffman.31@gmail.com\", role = c(\"cre\", \"aut\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-0741-7760\")),\nperson(\"Alexandra\", \"Amani\", role = \"aut\"),\nperson(\"Nico\", \"Keiser\", role = \"aut\")\n)",
  "Description": "Simulates and estimates the Exponential Random Partition\nModel presented in the paper Hoffman, Block, and Snijders\n(2023) <doi:10.1177/00811750221145166>. It can also be used to\nestimate longitudinal partitions, following the model proposed\nin Hoffman and Chabot (2023)\n<doi:10.1016/j.socnet.2023.04.002>. The model is an exponential\nfamily distribution on the space of partitions (sets of\nnon-overlapping groups) and is called in reference to the\nExponential Random Graph Models (ERGM) for networks.",
  "License": "GPL (>= 3)",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.1",
  "Collate": "'erpm-package.R' 'functions_utility.R'\n'functions_Metropolis.R' 'functions_burninthining.R'\n'functions_change_statistics.R' 'functions_estimate.R'\n'functions_exactcalculations.R'\n'functions_exchange_algorithm.R' 'functions_loglikelihood.R'\n'functions_output.R' 'functions_phase1.R' 'functions_phase2.R'\n'functions_phase3.R' 'functions_statistics.R'\n'functions_visualisation.R' 'outcomeObjects.R'",
  "URL": "https://github.com/stocnet/ERPM",
  "BugReports": "https://github.com/stocnet/ERPM/issues",
  "Config/pak/sysreqs": "libglpk-dev libxml2-dev",
  "Repository": "https://stocnet.r-universe.dev",
  "Date/Publication": "2024-05-22 06:35:35 UTC",
  "RemoteUrl": "https://github.com/stocnet/erpm",
  "RemoteRef": "HEAD",
  "RemoteSha": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-09 07:36:05 UTC",
    "User": "root"
  },
  "Author": "Marion Hoffman [cre, aut, cph] (ORCID:\n<https://orcid.org/0000-0002-0741-7760>),\nAlexandra Amani [aut],\nNico Keiser [aut]",
  "Maintainer": "Marion Hoffman <marion.hoffman.31@gmail.com>",
  "MD5sum": "12e160facc9f190974ee8f4cab615af1",
  "_user": "stocnet",
  "_type": "src",
  "_file": "ERPM_0.2.0.9000.tar.gz",
  "_fileid": "e51556e639a0ae5573642a63a45159714fde5d3f632fdf88703d64793a4ad49a",
  "_filesize": 279001,
  "_sha256": "e51556e639a0ae5573642a63a45159714fde5d3f632fdf88703d64793a4ad49a",
  "_created": "2026-05-09T07:36:05.000Z",
  "_published": "2026-05-22T13:14:46.195Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77386815320,
      "time": 148,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6894032647"
    },
    {
      "job": 77386816090,
      "time": 135,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894032080"
    },
    {
      "job": 77386815937,
      "time": 123,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6894030096"
    },
    {
      "job": 77386816045,
      "time": 82,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894026380"
    },
    {
      "job": 77386815349,
      "time": 167,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894017626"
    },
    {
      "job": 77386814787,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7161383710"
    },
    {
      "job": 77386815384,
      "time": 101,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6894028115"
    },
    {
      "job": 77386816331,
      "time": 104,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6894028353"
    },
    {
      "job": 77386816284,
      "time": 116,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894029540"
    }
  ],
  "_buildurl": "https://github.com/r-universe/stocnet/actions/runs/25595436894",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/stocnet/erpm",
  "_commit": {
    "id": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
    "author": "Marion Hoffman <marion.hoffman.31@gmail.com>",
    "committer": "Marion Hoffman <marion.hoffman.31@gmail.com>",
    "message": "git release\n",
    "time": 1716359735
  },
  "_maintainer": {
    "name": "Marion Hoffman",
    "email": "marion.hoffman.31@gmail.com",
    "login": "marion-hoffman",
    "twitter": "@marion_hof",
    "uuid": 15651627,
    "orcid": "0000-0002-0741-7760"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2",
      "role": "Depends"
    },
    {
      "package": "numbers",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "RColorBrewer",
      "role": "Imports"
    },
    {
      "package": "snowfall",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "stocnet",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 11,
  "_contributors": [
    {
      "user": "marion-hoffman",
      "count": 134,
      "uuid": 15651627
    },
    {
      "user": "nikeis",
      "count": 66,
      "uuid": 128040749
    },
    {
      "user": "isci1102",
      "count": 18,
      "uuid": 84293066
    }
  ],
  "_userbio": {
    "uuid": 154531996,
    "type": "organization",
    "name": "stocnet",
    "description": "Stochastic network software"
  },
  "_downloads": {
    "count": 195,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ERPM"
  },
  "_devurl": "https://github.com/stocnet/erpm",
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/ERPM.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/stocnet/erpm",
  "_realowner": "stocnet",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.0",
      "date": "2024-05-10"
    }
  ],
  "_exports": [
    "Bell_constraints",
    "calculate_denominator_Dirichlet_restricted",
    "calculate_proba_Dirichlet_restricted",
    "check_sizes",
    "compute_averagesize",
    "compute_numgroups_denominator",
    "computeStatistics",
    "computeStatistics_multiple",
    "correlation_between",
    "correlation_with_size",
    "correlation_within",
    "count_classes",
    "CUP",
    "draw_Metropolis_multiple",
    "draw_Metropolis_single",
    "estimate_ERPM",
    "estimate_logL",
    "estimate_multipleERPM",
    "exactestimates_numgroups",
    "find_all_partitions",
    "gridsearch_burnin_single",
    "gridsearch_burninthining_multiple",
    "gridsearch_burninthining_single",
    "gridsearch_thining_single",
    "group_size",
    "icc",
    "number_categories",
    "number_ties",
    "order_groupids",
    "phase1",
    "plot_averagesizes",
    "plot_numgroups_likelihood",
    "plot_partition",
    "proportion_isolate",
    "range_attribute",
    "run_phase1_multiple",
    "run_phase1_single",
    "run_phase2_multiple",
    "run_phase2_single",
    "run_phase3_multiple",
    "run_phase3_single",
    "same_pairs",
    "similar_pairs",
    "simulate_burnin_single",
    "simulate_burninthining_multiple",
    "simulate_burninthining_single",
    "simulate_thining_single",
    "Stirling2_constraints"
  ],
  "_datasets": [
    {
      "name": "estimation",
      "title": "Exemplary outcome objects for the ERPM Package",
      "object": "estimation",
      "class": [
        "results.list.erpm"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "Bell_constraints",
      "title": "Function to calculate the number of partitions with groups of sizes between smin and smax",
      "topics": [
        "Bell_constraints"
      ]
    },
    {
      "page": "calculate_denominator_Dirichlet_restricted",
      "title": "Calculate Dirichlet denominator",
      "topics": [
        "calculate_denominator_Dirichlet_restricted"
      ]
    },
    {
      "page": "calculate_proba_Dirichlet_restricted",
      "title": "Calculate Dirichlet probability",
      "topics": [
        "calculate_proba_Dirichlet_restricted"
      ]
    },
    {
      "page": "check_sizes",
      "title": "Function to determine whether a partition contains the allowed group sizes",
      "topics": [
        "check_sizes"
      ]
    },
    {
      "page": "compute_averagesize",
      "title": "Compute the average size of a random partition",
      "topics": [
        "compute_averagesize"
      ]
    },
    {
      "page": "compute_numgroups_denominator",
      "title": "Compute denominator for model with number of groups",
      "topics": [
        "compute_numgroups_denominator"
      ]
    },
    {
      "page": "computeStatistics",
      "title": "Compute Statistics",
      "topics": [
        "computeStatistics"
      ]
    },
    {
      "page": "computeStatistics_multiple",
      "title": "Compute Statistics multiple",
      "topics": [
        "computeStatistics_multiple"
      ]
    },
    {
      "page": "correlation_between",
      "title": "Between groups correlation",
      "topics": [
        "correlation_between"
      ]
    },
    {
      "page": "correlation_with_size",
      "title": "Correlation with size",
      "topics": [
        "correlation_with_size"
      ]
    },
    {
      "page": "correlation_within",
      "title": "Within groups correlation",
      "topics": [
        "correlation_within"
      ]
    },
    {
      "page": "count_classes",
      "title": "Function to count the number of partitions with a certain group size structure, for all possible group size structure. Function to use after calling the \"find_all_partitions\" function.",
      "topics": [
        "count_classes"
      ]
    },
    {
      "page": "CUP",
      "title": "CUP",
      "topics": [
        "CUP"
      ]
    },
    {
      "page": "draw_Metropolis_multiple",
      "title": "Draw Metropolis multiple",
      "topics": [
        "draw_Metropolis_multiple"
      ]
    },
    {
      "page": "draw_Metropolis_single",
      "title": "Draw Metropolis single",
      "topics": [
        "draw_Metropolis_single"
      ]
    },
    {
      "page": "estimate_ERPM",
      "title": "Estimate ERPM",
      "topics": [
        "estimate_ERPM"
      ]
    },
    {
      "page": "estimate_logL",
      "title": "Estimate log likelihood",
      "topics": [
        "estimate_logL"
      ]
    },
    {
      "page": "estimate_multipleERPM",
      "title": "Estimate ERPM for multiple observations",
      "topics": [
        "estimate_multipleERPM"
      ]
    },
    {
      "page": "exactestimates_numgroups",
      "title": "Exact estimates number of groups",
      "topics": [
        "exactestimates_numgroups"
      ]
    },
    {
      "page": "find_all_partitions",
      "title": "Function to enumerate all possible partitions for a given n",
      "topics": [
        "find_all_partitions"
      ]
    },
    {
      "page": "gridsearch_burnin_single",
      "title": "Grid - search burnin single",
      "topics": [
        "gridsearch_burnin_single"
      ]
    },
    {
      "page": "gridsearch_burninthining_multiple",
      "title": "Grid - search burnin thining multiple",
      "topics": [
        "gridsearch_burninthining_multiple"
      ]
    },
    {
      "page": "gridsearch_burninthining_single",
      "title": "Grid - search burnin thining single",
      "topics": [
        "gridsearch_burninthining_single"
      ]
    },
    {
      "page": "gridsearch_thining_single",
      "title": "Grid - search thining single",
      "topics": [
        "gridsearch_thining_single"
      ]
    },
    {
      "page": "group_size",
      "title": "Statistics on the size of groups in a partition",
      "topics": [
        "group_size"
      ]
    },
    {
      "page": "icc",
      "title": "Intra class correlation",
      "topics": [
        "icc"
      ]
    },
    {
      "page": "number_categories",
      "title": "Number of individuals having an attribute",
      "topics": [
        "number_categories"
      ]
    },
    {
      "page": "number_ties",
      "title": "Same pairs of individuals in a partition",
      "topics": [
        "number_ties"
      ]
    },
    {
      "page": "order_groupids",
      "title": "Function to replace the ids of the group without forgetting an id and put in the first appearance order for example: [2 1 1 4 2] becomes [1 2 2 3 1]",
      "topics": [
        "order_groupids"
      ]
    },
    {
      "page": "outcomeObjects",
      "title": "Exemplary outcome objects for the ERPM Package",
      "topics": [
        "estimation",
        "outcomeObjects"
      ]
    },
    {
      "page": "phase1",
      "title": "Core function for Phase 1",
      "topics": [
        "phase1"
      ]
    },
    {
      "page": "plot_averagesizes",
      "title": "Plot average sizes",
      "topics": [
        "plot_averagesizes"
      ]
    },
    {
      "page": "plot_numgroups_likelihood",
      "title": "Plot likelihood of number groups",
      "topics": [
        "plot_numgroups_likelihood"
      ]
    },
    {
      "page": "plot_partition",
      "title": "Visualization of partition",
      "topics": [
        "plot_partition"
      ]
    },
    {
      "page": "print.results.bayesian.erpm",
      "title": "Print results of bayesian estimation (beta version)",
      "topics": [
        "print.results.bayesian.erpm"
      ]
    },
    {
      "page": "print.results.list.erpm",
      "title": "Print estimation results",
      "topics": [
        "print.results.list.erpm"
      ]
    },
    {
      "page": "print.results.p3.erpm",
      "title": "Print results of estimation of phase 3",
      "topics": [
        "print.results.p3.erpm"
      ]
    },
    {
      "page": "proportion_isolate",
      "title": "Proportion of isolates",
      "topics": [
        "proportion_isolate"
      ]
    },
    {
      "page": "range_attribute",
      "title": "Range of attribute in groups",
      "topics": [
        "range_attribute"
      ]
    },
    {
      "page": "run_phase1_multiple",
      "title": "Phase 1 wrapper for multiple observations",
      "topics": [
        "run_phase1_multiple"
      ]
    },
    {
      "page": "run_phase1_single",
      "title": "Phase 1 wrapper for single observation",
      "topics": [
        "run_phase1_single"
      ]
    },
    {
      "page": "run_phase2_multiple",
      "title": "Phase 2 wrapper for multiple observation",
      "topics": [
        "run_phase2_multiple"
      ]
    },
    {
      "page": "run_phase2_single",
      "title": "Phase 2 wrapper for single observation",
      "topics": [
        "run_phase2_single"
      ]
    },
    {
      "page": "run_phase3_multiple",
      "title": "Phase 3 wrapper for multiple observation",
      "topics": [
        "run_phase3_multiple"
      ]
    },
    {
      "page": "run_phase3_single",
      "title": "Phase 3 wrapper for single observation",
      "topics": [
        "run_phase3_single"
      ]
    },
    {
      "page": "same_pairs",
      "title": "Same pairs of individuals in a partition",
      "topics": [
        "same_pairs"
      ]
    },
    {
      "page": "similar_pairs",
      "title": "Similar pairs of individuals in a partition",
      "topics": [
        "similar_pairs"
      ]
    },
    {
      "page": "simulate_burnin_single",
      "title": "Simulate burn in single",
      "topics": [
        "simulate_burnin_single"
      ]
    },
    {
      "page": "simulate_burninthining_multiple",
      "title": "Simulate burnin thining multiple",
      "topics": [
        "simulate_burninthining_multiple"
      ]
    },
    {
      "page": "simulate_burninthining_single",
      "title": "Simulate burnin thining single",
      "topics": [
        "simulate_burninthining_single"
      ]
    },
    {
      "page": "simulate_thining_single",
      "title": "Simulate thining single",
      "topics": [
        "simulate_thining_single"
      ]
    },
    {
      "page": "Stirling2_constraints",
      "title": "Function to calculate the number of partitions with k groups of sizes between smin and smax",
      "topics": [
        "Stirling2_constraints"
      ]
    }
  ],
  "_readme": "https://github.com/stocnet/erpm/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "glue",
    "igraph",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "numbers",
    "pkgconfig",
    "RColorBrewer",
    "rlang",
    "snow",
    "snowfall",
    "vctrs"
  ],
  "_score": 4.041392685158225,
  "_indexed": true,
  "_nocasepkg": "erpm",
  "_universes": [
    "stocnet",
    "marion-hoffman"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0.9000",
      "date": "2026-05-09T07:38:18.000Z",
      "distro": "noble",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "65d1c4a62f1270709808dfe04bc6d9c10909a852259d37e13262b1792dce8903",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/25595436894"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0.9000",
      "date": "2026-05-09T07:38:16.000Z",
      "distro": "noble",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "623adaadede0c488854e7265b7cba757fc23c28e296098ea2d869acb8affcb22",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/25595436894"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0.9000",
      "date": "2026-05-09T07:37:57.000Z",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "f864267e9c4b9595b84d663461634fdf1d4f8b8f2ac9932ae9521f11f25de07b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/25595436894"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0.9000",
      "date": "2026-05-09T07:37:29.000Z",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "e12a334f70c33e0c4f98b5ad008e6881f66e66f6b9bed455c7249b2222e6afe3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/25595436894"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-05-09T07:37:16.000Z",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "a8d11d4d59ab3dd24947d7ced9baf17705b3893c07674060e03330122375e0c4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/25595436894"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-05-09T07:37:17.000Z",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "cbbfe78693ce6893f326adf28aab9850d0cf28d416d0c32e5416dc729ca81189",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/25595436894"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-05-09T07:37:12.000Z",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "a5b3a2ff9d85e83ef93fca70726703decce4709950aa11e149c1ebb1c6a02a31",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/25595436894"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0.9000",
      "date": "2026-05-22T13:14:25.000Z",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "3d416144169cbbc53d572ab6f9995423de0ef09bb91bbfede5104017f3bf7bca",
      "status": "success",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/25595436894"
    }
  ]
}