sampleSize: Sample size

View source: R/dendrometry.R

sampleSizeR Documentation

Sample size

Description

Sample size

Usage

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

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 known. If not specified, simple random sampling will be used. Allows infinite.

method

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

cv

variation coefficient.

Value

The sample size.

Note

Population size to be considered as large or infinite heavily depends on error margin. Lower error margin increases population size to be conidered as large or infinite. For errorMargin = .05, size = 152 231 and cauchran 151 760 when confLev = .05

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()


dendrometry documentation built on June 8, 2025, 10:38 a.m.