plot_variable: Plots the difference between proportions in the original...

Description Usage Arguments Value

Description

Measures the difference between the total weight of the various levels of a variable in the original sample, and the actual count of each level in the synthetic population.

Usage

1
2
plot_variable(sample, generated, var.name, colorRef = "darkgray",
  colorSynthetic = "blue", as.factor = TRUE)

Arguments

sample

a sample as produced by create_sample

generated

a population as produced by matching.generate

var.name

the name of the variable to measure and plot

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")

as.factor

if TRUE (default), plots the variable as a factor instead of numerical

Value

the plot


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