plot.causalQual | R Documentation |
Plots an causalQual
object.
## S3 method for class 'causalQual'
plot(x, hline = TRUE, ...)
x |
An |
hline |
Logical, whether to display an horizontal line at zero in the plot. |
... |
Further arguments passed to or from other methods. |
Plots an causalQual object.
Riccardo Di Francesco
causalQual
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.