quantile.TBRAnalysisFitTbr1: Computes quantiles of the cumulative, pointwise, or the...

Description Usage Arguments Value

View source: R/quantile.R

Description

Computes quantiles of the cumulative, pointwise, or the counterfactual (posterior) distribution of the causal lift, from the beginning of pretest to the end of posttest.

Usage

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

Arguments

x

a TBRAnalysisFitTbr1 object.

probs

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

distribution

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

...

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.


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