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

Description Usage Arguments Value See Also

View source: R/as_gbrroasanalysisdata.R

Description

Coerces an object to a GBRROASAnalysisData object.

Usage

1
2
3
4
5
6
7
as.GBRROASAnalysisData(obj, ...)

## S3 method for class 'GeoExperimentData'
as.GBRROASAnalysisData(obj,
  response = character(0), cost = character(0), pretest.period = 0L,
  intervention.period = 1L, cooldown.period = NULL, control.group = 1L,
  treatment.group = 2L, ...)

Arguments

obj

an object.

...

further arguments to be passed to or from other methods.

response

(string) name of the response variable column.

cost

(string) name of the cost variable column.

pretest.period

(vector of non-negative integers) number(s) of the period(s) forming the pretest period.

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.

control.group

(NULL or a vector of positive integers) number(s) of geo groups forming the control group.

treatment.group

(NULL or a vector of positive integers) number(s) of geo groups forming the control group.

Value

A GBRROASAnalysisData object.

See Also

DoGBRROASAnalysis.


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