follow_up2 {experDesign} | R Documentation |
Follow up experiments in batches
Description
Design experiment with all the data new and old together.
Usage
follow_up2(all_data, batch_column = "batch", ...)
Arguments
all_data |
A |
batch_column |
The name of the column of |
... |
Arguments passed on to
|
Details
If the batch_column
is empty the samples are considered new.
If the size_subset
is missing, it will be estimated from the previous batch
Similarly, iterations and name will be guessed or inferred from the samples.
Value
A data.frame
with the batch_column
filled with the new batches needed.
See Also
Examples
data(survey, package = "MASS")
# Create the first batch
first_batch_n <- 118
variables <- c("Sex", "Smoke", "Age")
survey1 <- survey[seq_len(first_batch_n), variables]
index1 <- design(survey1, size_subset = 50, iterations = 10)
r_survey <- inspect(index1, survey1)
# Create the second batch with "new" students
survey2 <- survey[seq(from = first_batch_n +1, to = nrow(survey)), variables]
survey2$batch <- NA
# Prepare the follow up
all_classroom <- rbind(r_survey, survey2)
follow_up2(all_classroom, size_subset = 50, iterations = 10)