Description Usage Arguments Value Examples
Reshape data to have the structure required by PrePost
and
PreCheck
1 2 3 4 | ReshapeData(data, condition.col = "condition",
observation.col = "observation", pre.post.col = "pre.post",
condition.levels = c("control", "treatment"), pre.post.levels = c("pre",
"post"))
|
data |
A data.frame with several variables. The variable
|
condition.col |
The name of the variable indicating the treatment
assignment for each row in |
observation.col |
The name of the variable indicating the observation
for each row in |
pre.post.col |
The name of the variable indicating the period for each
row in |
condition.levels |
The names indicating |
pre.post.levels |
The names indicating |
A data.frame with several variables. The variable condition
indicates the treatment assignment (control
or treatment
)
for each row. The variable pre
indicates
the observed value during the pre-period for each row.
The variable metric
indicates the name of each metric.
1 2 3 | data <- SampleData(n.metrics = 4, spread = TRUE)
reshaped.data <- ReshapeData(data)
ans <- PrePost(reshaped.data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.