plot.TSMLCARA: Plots a TSMLCARA Object

Description Usage Arguments Author(s) See Also Examples

Description

Plots a TSMLCARA object.

Usage

1
2
3
4
## S3 method for class 'TSMLCARA'
plot(x, truth = NULL, regret = NULL, regret.mirror = FALSE, 
    lower.bound = TRUE, xlog = TRUE, colors = c("tomato", "olivedrab4"), 
    file = NULL, ...)

Arguments

x

An object of class TSMLCARA.

truth

Defaults to NULL. When estimating the Average Treatment Effect ('what' equal to "ATE"), can be set to a vector, the true values of both the targeted parameter and standard deviation of the efficient influence curve under the optimal treatment mechanism given a working model, as output by 'getOptVar'. When estimating the Mean under the Optimal treatment Rule ('what' equal to 'MOR'), can be set to either a vector or a list of two vectors. In the former case, the vector gives the true values of both the targeted parameter and standard deviation of the efficient influence curve under the optimal treatment rule. In the latter case, the list contains the same vector as before and a second vector giving the values of the targeted data-adaptive parameters.

regret

Defauls to NULL. When estimating the optimal treatment rule ('what' equal to 'MOR'), can be set to a vector or a list of two vectors. In the former case, the vectors gives the true values of the empirical or the counterfactual regrets. In the latter case, the list contains both.

regret.mirror

Should the regret(s) be mirrored? If regret is given, should it be multiplied by (-1)? (defaults to FALSE).

lower.bound

Defaults to TRUE. Should the confidence lower bound on the regrets be printed or a confidence interval?

xlog

Defaults to TRUE. Should x-axis be on a log-scale?

colors

A length 2 vector of colors. Defauls to c("tomato", "olivedrab4"), colors used for plotting.

file

A character. Defaults to NULL, and if a character then a PDF plot is produced, with name "'file'.pdf".

...

Not used.

Author(s)

Antoine Chambaz [aut, cre]

See Also

tsml.cara.rct

Examples

1

achambaz/tsml.cara.rct documentation built on May 10, 2019, 5:10 a.m.