SetTreatmentAssignment: Associates the object with an TreatmentAssignment object.

Description Usage Arguments Value Note

Description

Associates the object with an TreatmentAssignment object.

Usage

1
2
3
4
5
SetTreatmentAssignment(obj, ...) <- value

## S3 replacement method for class 'GeoExperimentData'
SetTreatmentAssignment(obj, strict = TRUE, ...) <-
  value

Arguments

obj

the object to change.

...

further arguments passed to methods.

value

a TreatmentAssignment object.

strict

(flag) insist that data has all treatment combinations?

Value

The object (that has been modified in place).

Note

The value pairs ('period', 'geo.group') are mapped to a (treatment) 'assignment' column.

If 'strict' is TRUE, throws an error if some treatment assignments are not found in the data. If 'strict' is FALSE, no warnings or errors are thrown.


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