Description Usage Arguments Value Author(s) See Also Examples
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
.
1 | matching.prepare(sample.A, sample.B, pdi, pdj, pij, fix = TRUE)
|
sample.A |
the sample to use for population A created using |
sample.B |
the sample to use for population B created using |
pdi |
the distribution of degrees for population A created with |
pdj |
the distribution of degrees for population B created with |
pij |
the matching probabilities created with |
fix |
if |
a case ready to be solved with matching.solve
Samuel Thiriot <samuel.thiriot@res-ear.ch>
matching.solve
to use the result of this function
1 2 3 4 | data(dwellings_households)
prepared <- matching.prepare(dwellings_households$sample.A, dwellings_households$sample.B,
dwellings_households$pdi, dwellings_households$pdj,
dwellings_households$pij)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.