Skip to contents

Clean data for function sps()

Usage

clean_for_sps(X, scale = TRUE)

Arguments

X

Site-level variables for the target population of sites. Row names should be names of sites. X cannot contain missing data.

scale

TRUE or FALSE. Whether to standardize numeric variables to make each variable mean zero and standard deviation one.

Value

clean_for_sps returns an object of matrix class, which we supply to sps().

  • X: Site-level variables for the target population of sites.

References

Egami and Lee. (2023+). Designing Multi-Context Studies for External Validity: Site Selection via Synthetic Purposive Sampling. Available at https://naokiegami.com/paper/sps.pdf.