TBRAnalysisData: Constructs a TBRAnalysisData object.

Description Usage Arguments Value Note

View source: R/tbranalysisdata.R

Description

Constructs a TBRAnalysisData object.

Usage

1

Arguments

x

a _plain_ data.frame or an object that has to be coercible to a _plain_ data.frame with the required columns data, which _must_ be a Date vector; integer-valued column period indicating the pre-experiment, pretest, intervention, cooldown, and posttest periods; numeric columns y (response), x (covariate). Optionally the data frame can have other columns, which are ignored but whose names cannot start with a dot ('.'). No missing values are allowed in the pretest and test periods (but allowed outside of either period).#'

Value

A TBRAnalysisData object, which is similarly a data.frame with the columns:

TBRAnalysisData is a data.frame, with the required columns,

Note

The column date is the primary key; it is guaranteed that no rows with duplicate geos exist and that the rows are in temporal order.


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