Generate a population that follows the model in Hansen, Madow, and Tepping (1983)

1 | ```
HMT(N=5000, H=10)
``` |

`N` |
population size |

`H` |
number of strata |

`HMT`

generates a population based on the model: *E(y)= α + β x*, *Var(y)=σ^2x^{3/2}*. Both *x* and *y* have gamma distributions. Strata are formed to have approximately the same total of *x*.

N x 3 matrix with columns:

`strat` |
stratum ID |

`x` |
auxiliary variable |

`y` |
analysis variable |

Richard Valliant, Jill A. Dever, Frauke Kreuter

Hansen,M.H., Madow,W.G., and Tepping,B.J. (1983). An evaluation of model-dependent and probability sampling inferences in sample surveys. *Journal of the American Statistical Association*, 78, 776-793.

1 2 3 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

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.