plot.causalQual {causalQual}R Documentation

Plot Method for causalQual Objects

Description

Plots an causalQual object.

Usage

## S3 method for class 'causalQual'
plot(x, hline = TRUE, ...)

Arguments

x

An causalQual object.

hline

Logical, whether to display an horizontal line at zero in the plot.

...

Further arguments passed to or from other methods.

Value

Plots an causalQual object.

Author(s)

Riccardo Di Francesco

See Also

causalQual

Examples

## Generate synthetic data.
set.seed(1986)

data <- generate_qualitative_data_soo(1000, assignment = "observational",
                                      outcome_type = "ordered")
Y <- data$Y
D <- data$D
X <- data$X

## Estimate probabilities of shifts.
fit <- causalQual_soo(Y = Y, D = D, X = X, outcome_type = "ordered")
plot(fit)


[Package causalQual version 1.0.0 Index]