quantile.TBRROASAnalysisFit: Computes quantiles of the cumulative or pointwise...

Description Usage Arguments Value Note

View source: R/quantile.R

Description

Computes quantiles of the cumulative or pointwise distribution of the incremental ROAS, for each of the days in the pretest and the prediction period.

Usage

1
2
3
## S3 method for class 'TBRROASAnalysisFit'
quantile(x, probs = c(0.1, 0.5, 0.9),
  distribution = c("cumulative", "pointwise"), ...)

Arguments

x

a TBRROASAnalysisFit object.

probs

(numeric vector, each >= 0 and <= 1) quantiles to calculate.

distribution

(string) either 'cumulative' or 'pointwise'.

...

ignored.

Value

A TBRQuantiles object, which is a data frame with each row corresponding to a day in the pretest and the prediction period, with columns 'date', 'test', and the columns for the quantiles.

Note

The pretest period is included solely for the purpose of obtaining objects of conforming size from both quantile methods (that of TBRAnalysisFitTbr1 and of this one).


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