sample_expanded_data | R Documentation |
Internal method to sample expanded data
sample_expanded_data(
object,
p_control,
period = NULL,
subset_condition = NULL,
seed
)
## S4 method for signature 'te_datastore'
sample_expanded_data(
object,
p_control,
period = NULL,
subset_condition = NULL,
seed
)
object |
An object of class te_datastore. |
p_control |
Probability of selecting a control. |
period |
An integerish vector of non-zero length to select trial period(s) or |
subset_condition |
A string or |
seed |
An integer seed or |
A data.frame
of class data.table
.
# Data object normally created by [expand_trials]
datastore <- new("te_datastore_datatable", data = te_data_ex$data, N = 50139L)
sample_expanded_data(datastore, period = 260:275, p_control = 0.2, seed = 123)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.