View source: R/cap05-sistematica.R
| sist_intervalo | R Documentation |
Computes the sampling interval k = N/n used to select a systematic
sample, following Section 5.1-5.2 of the course notes. When N/n is
not an integer, k is first rounded up; if k*n > N, k is then
decremented by 1, and the correction constant k* = N - k*n is
computed (Example 5.2 of the course notes).
sist_intervalo(N, n, ...)
N |
Population size. |
n |
Desired sample size. |
... |
Ignored (see package overview on tolerated extra arguments). |
A sampling_result object with the sampling interval (and,
when N/n is not an integer, the correction constant k* needed by
sist_selecionar_amostra()).
sist_intervalo(N = 2000, n = 80)
sist_intervalo(N = 2000, n = 75)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.