as.TBRAnalysisData: Coerces an object to a TBRAnalysisData object.

Description Usage Arguments Value See Also

View source: R/as_tbranalysisdata.R

Description

Coerces an object to a TBRAnalysisData object.

Usage

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, ...)

Arguments

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.

Value

A TBRAnalysisData object.

See Also

DoTBRAnalysis, DoTBRROASAnalysis.


google/GeoexperimentsResearch documentation built on May 17, 2019, 7:42 a.m.