strata.samplesize.cost {samplingR}R Documentation

Strata sample size by costs function

Description

This function returns the total sample size given a costs function consisting on the fixed total study cost, overhead study cost and a vector of costs by strata. can be given so the allocation is calculated to not exceed the total study cost.

Usage

strata.samplesize.cost(
  Nh,
  var,
  C,
  cini,
  ch,
  alloc = c("unif", "prop", "optim")
)

Arguments

Nh

Vector of population strata sizes.

var

Vector of strata variance values.

C

Total study cost.

cini

Overhead study cost.

ch

Vector of costs to take an individual from a strata for the sample.

alloc

The allocation method to be used. Default is "unif".

Details

Strata variance values are only necessary for optim allocation.

Value

Sample size.

Examples

strata.samplesize.cost(Nh=c(100,500,200), C=1000, cini=70, ch=c(9,5,12), alloc="prop")

[Package samplingR version 1.0.1 Index]