{
  "_id": "6a27a9e224555f66ed533e68",
  "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-06-08 08:23:49 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": "5fe2039809208f20ed7af2a2b3bb1942",
  "_user": "stocnet",
  "_type": "src",
  "_file": "ERPM_0.2.0.9000.tar.gz",
  "_fileid": "805d216418b6773c3234f6284b1e292ad5ced2e93772d2d64a38ff035c8f73cc",
  "_filesize": 277471,
  "_sha256": "805d216418b6773c3234f6284b1e292ad5ced2e93772d2d64a38ff035c8f73cc",
  "_created": "2026-06-08T08:23:49.000Z",
  "_published": "2026-06-09T05:51:30.870Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80256887899,
      "time": 145,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7474988117"
    },
    {
      "job": 80256887840,
      "time": 105,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7474975832"
    },
    {
      "job": 80256888154,
      "time": 95,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7474972606"
    },
    {
      "job": 80256888066,
      "time": 115,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7474979274"
    },
    {
      "job": 80256887495,
      "time": 214,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7474941727"
    },
    {
      "job": 80256888090,
      "time": 108,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7474977063"
    },
    {
      "job": 80256887736,
      "time": 109,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7474977598"
    },
    {
      "job": 80256887806,
      "time": 120,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7474980483"
    },
    {
      "job": 80256887656,
      "time": 95,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7499527318"
    }
  ],
  "_buildurl": "https://github.com/r-universe/stocnet/actions/runs/27124942069",
  "_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",
    "description": "PhD from the Social Networks Lab at ETH Zürich, currently Assistant Professor in Sociology at the Toulouse School of Economics",
    "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": 138,
    "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-06-08T08:26:16.000Z",
      "distro": "noble",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "b4e2617ca3ec315b00395a49dbdaa2fe9a8b152b515624b232ce10d080d5a9b6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/27124942069"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0.9000",
      "date": "2026-06-08T08:25:51.000Z",
      "distro": "noble",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "83c8555aeda2fe060732dfe669e769f21d00b2f53ebba08c59f1dc1bbe642ad9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/27124942069"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0.9000",
      "date": "2026-06-08T08:25:35.000Z",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "42e4348833548e7eb0c02088776f8f2c8708daf961c1818f2799cdd5661a157a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/27124942069"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0.9000",
      "date": "2026-06-08T08:25:57.000Z",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "a43d93f9aa4eb8d219b9411f991e6799d8ee9d871fbe4303f2044c0ff0ae8b05",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/27124942069"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0.9000",
      "date": "2026-06-08T08:26:14.000Z",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "c9b60ed4ea530482e4821478500cc497b9369903076d52161c69fd5a2ae7127b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/27124942069"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-06-08T08:25:25.000Z",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "a05cfae3e0e60e207a38bfa243253183bb61c799b99319bfa0053f68081bf1a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/27124942069"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-06-08T08:25:34.000Z",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "a7ed1669a27a61fb60d721aba0df97c0c3f767509fd8180dd0216984330eaee3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/27124942069"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0.9000",
      "date": "2026-06-09T05:50:22.000Z",
      "commit": "d3bcc4706f4095cdabdf38d4c1a21f31400d4efc",
      "fileid": "2e202508f5eb02f5a63098ca67efb44cfa50b84c9c8b4c37c3066d9f30b2981c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stocnet/actions/runs/27124942069"
    }
  ]
}