ERPM0.2.0 package

Exponential Random Partition Models

correlation_within

Within groups correlation

count_classes

Function to count the number of partitions with a certain group size s...

correlation_between

Between groups correlation

exactestimates_numgroups

Exact estimates number of groups

find_all_partitions

Function to enumerate all possible partitions for a given n

proportion_isolate

Proportion of isolates

range_attribute

Range of attribute in groups

correlation_with_size

Correlation with size

estimate_multipleERPM

Estimate ERPM for multiple observations

Bell_constraints

Function to calculate the number of partitions with groups of sizes be...

calculate_denominator_Dirichlet_restricted

Calculate Dirichlet denominator

calculate_proba_Dirichlet_restricted

Calculate Dirichlet probability

check_sizes

Function to determine whether a partition contains the allowed group s...

compute_averagesize

Compute the average size of a random partition

compute_numgroups_denominator

Compute denominator for model with number of groups

computeStatistics

Compute Statistics

computeStatistics_multiple

Compute Statistics multiple

CUP

CUP

draw_Metropolis_multiple

Draw Metropolis multiple

draw_Metropolis_single

Draw Metropolis single

ERPM-package

ERPM: Exponential Random Partition Models

estimate_ERPM

Estimate ERPM

estimate_logL

Estimate log likelihood

gridsearch_burnin_single

Grid - search burnin single

gridsearch_burninthining_multiple

Grid - search burnin thining multiple

gridsearch_burninthining_single

Grid - search burnin thining single

gridsearch_thining_single

Grid - search thining single

group_size

Statistics on the size of groups in a partition

icc

Intra class correlation

number_categories

Number of individuals having an attribute

number_ties

Same pairs of individuals in a partition

order_groupids

Function to replace the ids of the group without forgetting an id and ...

outcomeObjects

Exemplary outcome objects for the ERPM Package

phase1

Core function for Phase 1

plot_averagesizes

Plot average sizes

plot_numgroups_likelihood

Plot likelihood of number groups

plot_partition

Visualization of partition

print.results.bayesian.erpm

Print results of bayesian estimation (beta version)

print.results.list.erpm

Print estimation results

print.results.p3.erpm

Print results of estimation of phase 3

run_phase1_multiple

Phase 1 wrapper for multiple observations

run_phase1_single

Phase 1 wrapper for single observation

run_phase2_multiple

Phase 2 wrapper for multiple observation

run_phase2_single

Phase 2 wrapper for single observation

run_phase3_multiple

Phase 3 wrapper for multiple observation

run_phase3_single

Phase 3 wrapper for single observation

same_pairs

Same pairs of individuals in a partition

similar_pairs

Similar pairs of individuals in a partition

simulate_burnin_single

Simulate burn in single

simulate_burninthining_multiple

Simulate burnin thining multiple

simulate_burninthining_single

Simulate burnin thining single

simulate_thining_single

Simulate thining single

Stirling2_constraints

Function to calculate the number of partitions with k groups of sizes ...

Simulates and estimates the Exponential Random Partition Model presented in the paper Hoffman, Block, and Snijders (2023) <doi:10.1177/00811750221145166>. It can also be used to estimate longitudinal partitions, following the model proposed in Hoffman and Chabot (2023) <doi:10.1016/j.socnet.2023.04.002>. The model is an exponential family distribution on the space of partitions (sets of non-overlapping groups) and is called in reference to the Exponential Random Graph Models (ERGM) for networks.

  • Maintainer: Marion Hoffman
  • License: GPL (>= 3)
  • Last published: 2024-05-10