Learn R Programming

causalQual (version 1.0.0)

plot.causalQual: Plot Method for causalQual Objects

Description

Plots an causalQual object.

Usage

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

Value

Plots an causalQual object.

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.

Author

Riccardo Di Francesco

See Also

causalQual

Examples

Run this code
## 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)

Run the code above in your browser using DataLab