Description Usage Arguments Details Value Author(s) Examples
Plots all the values controlled by the algorithm, and compares their expected value (passed as data or parameter) and their actual value (as measured in the resulting synthetic population). The resulting graphs contain:
a graph showing the relaxation parameters passed to the solving function, as computed by plot_relaxation
a graph showing the Normalized Root Mean Square Error (NRMSE) for the each control variable, as computed by plot_errors
a graph showing the population sizes asked for and generated for populations A and B, as computed by plot_population_sizes
a graph showing the difference between the input and observed pairing probabilities pij, as computed by plot_errors_pij
two graphs showing the initial and observed frequencies of control variables in both populations A and B, as computed by plot_frequencies_A
two graphs showing the initial and observed average degrees in both populations A and B, as computed by plot_average_degree_A
two graphs showing the difference between the expected and measured distribution of probability of degrees for both A and B, as computed by plot_errors_pdi
1 2 3 4 5 6 7 |
x |
an object returned by the |
nameA |
a meaningfull label for the entity type of population A, such as "dwellings" (default to "A") |
nameB |
a meaningfull label for the entity type of population B, such as "households" (default to "B") |
colorRef |
the color to be used to plot values passed as parameters (defaults to "darkgray") |
colorSynthetic |
the color to be used to plot values measured in the synthetic population (defaults to "blue") |
... |
other parameters will be ignored quietly |
Note you can call the individual plotting functions for rendering for papers or zooming.
nothing
Samuel Thiriot <samuel.thiriot@res-ear.ch>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(dwellings_households)
prepared <- matching.prepare(
dwellings_households$sample.A, dwellings_households$sample.B,
dwellings_households$pdi, dwellings_households$pdj,
dwellings_households$pij)
solved <- matching.solve(
prepared, nA=50000, nB=40000, nu.A=1, phi.A=0,
delta.A=0, gamma=0, delta.B=0, phi.B=0, nu.B=1, verbose=TRUE)
plot(solved, "dwellings", "households")
# we might as well drive the same on a generated case:
# sp <- matching.generate(
# solved,
# sample.A=dwellings_households$sample.A,
# sample.B=dwellings_households$sample.B,
# verbose=TRUE)
# plot(sp, "dwellings", "households")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.