Functions have been renamed to include a rk_ prefix. Function names without prefixes have been deprecated but will continue to work for now so as not to affect existing code.
Increased code coverage.
check_constraint() and check_ind() are now deprecated. These checks are carried out by the weight() and/or integerise()/extract() functions automatically.
Update README.md documentation
Add additional unit tests - thanks Derrick Atherton for feedback
Add appropriate acknowledgements for source of data set used for examples and testing.
v 0.2.1 2017-10-10
Patch release:
Fixes to examples and tests to use correct variable labels and names (thanks Derrick Atherton for pointing this out).
Fix version number in NEWS
v 0.2.0 2017-06-30
integerise() now uses the wrswoR package for sampling without replacement. This is in the order of 100s of times faster, reducing the time taken for the function to return from hours to minutes. I have implemented the sample_int_crank() function as this has given results similar to that of base R’s sample() in testing, so this should minimise changes between the two. See https://stackoverflow.com/questions/15113650/faster-weighted-sampling-without-replacement or https://cran.r-project.org/package=wrswoR for details of the implementation.
simulate() is deprecated. Instead of weight() %>% integerise() %>% simulate(), just use weight() %>% integerise(). This is to improve consistency with the steps to produce fractional weights (weight() %>% extract()).
extract_weights() has been deprecated. Use extract() instead.