View source: R/sample_references.R
sample_references | R Documentation |
sample_references
samples n rows from the dataset with titles and abstracts either with or without replacement.
This function is supposed to support the construct of a test dataset,
as suggested by Vembye et al. (2024).
sample_references(
data,
n,
with_replacement = FALSE,
prob_vec = rep(1/n, nrow(data))
)
data |
Dataset containing the titles and abstracts wanted to be screened. |
n |
A non-negative integer giving the number of rows to choose. |
with_replacement |
Logical indicating if sampling should be done with of without replacement.
Default is |
prob_vec |
'A vector of probability weights for obtaining the elements of the vector being sampled.' Default is a vector of 1/n. |
A dataset with n rows.
Vembye, M. H., Christensen, J., Mølgaard, A. B., & Schytt, F. L. W. (2024) GPT API Models Can Function as Highly Reliable Second Screeners of Titles and Abstracts in Systematic Reviews: A Proof of Concept and Common Guidelines https://osf.io/preprints/osf/yrhzm
excl_test_dat <- filges2015_dat[1:200,] |> sample_references(100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.