Description Usage Arguments Value
View source: R/SurrogateGuidedSample.R
Makes a sample enriched for cases using ideas from surrogate guided sampling strategy
1 2 |
df |
Input data frame |
n_sample |
Sample size |
stratify_var |
quo(column in df) to stratify sample on; defaults to NULL for simple random sample |
nz1 |
Number of surrogate positives in sample |
nz0 |
Number of surrogate negatives in sample |
REPLACE: |
whether to sample with replacement |
sampled.df: A data frame with length n_sample according to specified sampling scheme
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.