sampleSize {dendrometry}R Documentation

Sample size

Description

Sample size

Usage

sampleSize(
  confLev = 0.95,
  popPro = 0.5,
  errorMargin = 0.05,
  size = NULL,
  method = ""
)

Arguments

confLev

numeric, the confidence level. Default is 0.05.

popPro

numeric, proportion of population which have considered factor. Default is 0.5.

errorMargin

numeric, margin error. Default is 0.05.

size

integer, population size when it is know. If not specified, simple random sampling will be used.

method

optional character string specifying method to use if not simple adjusted is desired. Only "cauchran" is implemented now.

Value

The sample size.

Examples

sampleSize(confLev = .95, popPro = 0.4, errorMargin = .05)
sampleSize(confLev = .95, popPro = 0.5, errorMargin = .05, size = 150)
sampleSize(confLev = .95, popPro = 0.5, errorMargin = .05, size = 150,
method = "cauchran")
sampleSize()


[Package dendrometry version 0.0.2 Index]