sampler {whSample}R Documentation

Generate Sample Lists from Excel or CSV Files

Description

sampler generates Simple Random or Stratified samples

Arguments

ci

the required confidence level

me

the margin of error

p

the expected probability of occurrence

backups

the number of available replacements

seed

the random number seed

Value

Writes samples to an Excel workbook and generates a report summary.

Details

sampler lets users select an Excel or delimited text (.csv or .txt) data file and the type of sample they prefer (Simple Random Sample, Stratified Random Sample, or Tabbed Stratified Sample with each stratum in a different Excel worksheet).

Examples

if(interactive()){
sampler(backups=3, p=0.6)
}

[Package whSample version 0.9.6.2 Index]