View source: R/strata.samplesize.cost.R
strata.samplesize.cost | R Documentation |
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.
strata.samplesize.cost(
Nh,
var,
C,
cini,
ch,
alloc = c("unif", "prop", "optim")
)
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". |
Strata variance values are only necessary for optim allocation.
Sample size.
strata.samplesize.cost(Nh=c(100,500,200), C=1000, cini=70, ch=c(9,5,12), alloc="prop")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.