Learn R Programming

InvariantCausalPrediction (version 0.8)

plot.InvariantCausalPrediction: Plots of "InvariantCausalPrediction" objects

Description

Plots confidence intervals for invariant causal prediction (output of ICP function)

Usage

# S3 method for InvariantCausalPrediction
plot(x, 
                 maxshow = 50, col1 = NULL, col2 = NULL, col3 = NULL, 
                 mar = c(10, 4, 3, 1), lwd = 1, ...)

Arguments

x

Object of class "InvariantCausalPrediction", as generated by function ICP.

maxshow

Maximal number of variables to show confidence intervals for

col1

Colour of confidence intervals generated by accepted sets of variables (defaults to light red).

col2

Colour of point-estimates generated by accepted sets of variables (defaults to light red).

col3

Colour of confidence intervals generated by procedure (defaults to blue).

mar

Margins for the figure (might need to be adjusted to allow for long variable names.

lwd

Scaling of the width of the lines used for individual confidence intervals.

Additional inputs to generic plot function (not used).

Value

Does not return an object.

References

Jonas Peters, Peter Buhlmann, Nicolai Meinshausen (2015):

Causal inference using invariant prediction: identification and confidence intervals

arxiv preprint http://arxiv.org/abs/1501.01332

See Also

ICP