Description Usage Arguments Value See Also Examples

Stratified probability-proportional-to-size (PPS) sampling using permanent random numbers. Can also be used for non-stratified PPS using a dummy stratum taking the same value for each object.

1 |

`df` |
Data frame containing the elements to sample from. |

`stratid` |
Variable in |

`nsamp` |
Variable in |

`prn` |
Variable in |

`size` |
Variable in |

Copy of the input data frame together with the boolean variable `sampled`

, as well as a numeric variable `lambda`

containing the estimated first-order inclusion probabilities.

`samp`

,
`srs`

,
`transformprn`

.

1 | ```
pps(df=ExampleData, nsamp="nsamp", stratid="stratum", prn="prn", size="size")
``` |

kirajcg/prnsamplr documentation built on May 17, 2019, 3:12 a.m.

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.