Generates sampling points using stratified random sampling, where random samples are taken within each stratum.
Arguments
- strata
An object of class
ss_stratacreated byss_stratify().- n_per_stratum
Integer, number of samples per stratum (default 1).
- seed
Optional integer seed for reproducibility.
Value
An object of class ss_samples containing:
- samples
An
sfobject with sampling points and stratum assignments.- method
Character, "stratified_random".
- n_samples
Integer, total number of samples.
- strata
The input strata object.
- crs
The coordinate reference system.
Details
Stratified random sampling first divides the study area into strata, then takes random samples within each stratum. This ensures spatial coverage while maintaining the randomness required for design-based inference.
