matching.prepare: Prepares a case for Direct Probabilistic Peering

Description Usage Arguments Value Author(s) See Also Examples

Description

Prepares a case based on two samples and two sets of probabilities. It takes two samples, probabilities distributions for degrees (count of links per entity) and matching probabilities. It ensures all the parameters are consistent. In case fix=TRUE, a prior temptative to fix minor inconsistencies will be done using matching.fix.

Usage

1
matching.prepare(sample.A, sample.B, pdi, pdj, pij, fix = TRUE)

Arguments

sample.A

the sample to use for population A created using create_sample

sample.B

the sample to use for population B created using create_sample

pdi

the distribution of degrees for population A created with create_degree_probabilities_table

pdj

the distribution of degrees for population B created with create_degree_probabilities_table

pij

the matching probabilities created with create_matching_probabilities_table

fix

if TRUE, the function will fix mismatches (notably missing variables in pdi, pdj or pij) by itself

Value

a case ready to be solved with matching.solve

Author(s)

Samuel Thiriot <samuel.thiriot@res-ear.ch>

See Also

matching.solve to use the result of this function

Examples

1
2
3
4

samthiriot/gosp.dpp documentation built on May 18, 2019, 3:44 p.m.