Description Usage Arguments Value See Also
View source: R/as_tbranalysisdata.R
Coerces an object to a TBRAnalysisData object.
1 2 3 4 5 6 | as.TBRAnalysisData(obj, ...)
## S3 method for class 'GeoExperimentData'
as.TBRAnalysisData(obj, response = character(0),
control.group = 1L, treatment.group = 2L, pretest.period = 0L,
intervention.period = 1L, cooldown.period = NULL, ...)
|
obj |
an object. |
... |
further arguments to be passed to or from other methods. |
response |
(string) name of the response metric to analyze. |
control.group |
(positive integer) number of the control group (matching one of the groups in the column 'geo.group'). This is typically 1. |
treatment.group |
(positive integer) number of the treatment group (matching one of the groups in the column 'geo.group'). This is typically 2. |
pretest.period |
(non-negative integers) number of the pretest period, typically 0. Can also be one or more numbers, if periods are to be collapsed. |
intervention.period |
(vector of non-negative integers) number(s) of the period(s) forming the intervention period. All must be larger than the largest period in the pretest period. |
cooldown.period |
(NULL or vector of non-negative integers) number(s) of the period(s) forming the cooldown period. All must be larger than the largest period in the intervention period. |
A TBRAnalysisData object.
DoTBRAnalysis
, DoTBRROASAnalysis
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.