Description Usage Arguments Value Note
Constructs a GBRROASAnalysisData object.
1 |
x |
a _plain_ 'data.frame' or an object that has to be coercible to a _plain_ 'data.frame' with the required columns 'geo', which is a character vector; numeric columns 'resp.pre', 'resp.test', 'cost.pre', 'cost.test', and a logical (TRUE/FALSE) column 'control'. Optionally the data frame can have other columns, whose names can not start with a dot ('.'). No missing values are allowed. |
A GBRROASAnalysisData object, which is similarly a 'data.frame' with the same columns as described above.
'GBRROASAnalysisData' is a 'data.frame', with the required columns,
geo
a 'character'-valued vector of Geo IDs.
resp.pre
numeric values of the response metric in the
pre-test period.
resp.test
numeric values of the response metric in the test
period.
cost.pre
numeric values of the cost metric in the pre-test
period.
cost.test
numeric values of the response metric in the test
period.
control
: indicator ('TRUE'/'FALSE') of which columns are
in the Control group.
In addition, optionally any other user-definable columns. The column 'geo' is the primary key; it is guaranteed that no rows with duplicate geos exist. The object includes the following fields stored in the attribute 'info':
keys
: names of the primary key columns ('geo').
required
: names of the required columns.
metrics
: names of the columns representing metric data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.