Learn R Programming

sleacr (version 0.1.3)

get_sampling_clusters: Select sampling clusters using systematic sampling

Description

Select sampling clusters using systematic sampling

Usage

get_sampling_clusters(N_clusters, n_clusters)

get_sampling_list(cluster_list, n_clusters)

Value

An integer vector for get_sampling_clusters() giving the row index for selected clusters. A data.frame for [get_sampling_list()] which is a subset of cluster_list.

Arguments

N_clusters

Total number of clusters in survey area.

n_clusters

Number of sampling clusters to be selected.

cluster_list

A data.frame containing at least the name or any other identifier for the entire set of clusters to sample from.

Examples

Run this code
get_sampling_clusters(N_clusters = 211, n_clusters = 35)
get_sampling_list(cluster_list = village_list, n_clusters = 70)

Run the code above in your browser using DataLab