Description Usage Arguments Value Examples
View source: R/23-calculate_weights.R
Function to calculate the inverse of the probability of an individual being sampled in the population
1 | get_weights(n, N, m, c)
|
n |
Population size of cluster |
N |
Total population |
m |
Number of clusters |
c |
Number of individuals to be sampled in a cluster |
Numeric value of inverse probability weight
1 | get_weights(n = 1028, N = 20000, m = 30, c = 300)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.