`weight.data`

iteratively re-weights the data to find the best fit
to a list of target distributions.

1 2 3 4 | ```
weight.data(data.frame, target.distributions,
data.frame.weight.name = default.weight.name,
target.distribution.weight.names = default.weight.name, epsilon = 0.01,
max.steps = 10)
``` |

`data.frame` |
(data.frame) the data.frame with source data. |

`target.distributions` |
(list of data.frame) one more target distributions that the re-weighted data should approximate. |

`data.frame.weight.name` |
(character) the name of the weight variable
in the source |

`target.distribution.weight.names` |
(character) the names of weight variables
in the |

`epsilon` |
(numeric) the target precision of the approximation. |

`max.steps` |
(numeric) the maximum number of times the algorithm will re-weight the data to find the best fit. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.