dda.vardist | R Documentation |
dda.vardist
evaluates patterns of asymmetry of variable
distributions for causally competing models
(y ~ x
vs. x ~ y
).
print
returns DDA test statistics associated with dda.vardist
objects.
dda.vardist(
formula,
pred = NULL,
data = list(),
B = 200,
boot.type = "perc",
conf.level = 0.95
)
## S3 method for class 'dda.vardist'
print(x, ...)
formula |
Symbolic formula of the model to be tested or a |
pred |
Variable name of the predictor which serves as the outcome in the alternative model. |
data |
An optional data frame containing the variables in the
model (by default variables are taken from the environment
which |
B |
Number of bootstrap samples. |
boot.type |
A character indicating the type of bootstrap confidence intervals. Must be one of the two specifications c("perc", "bca"). boot.type = "perc" is the default. |
conf.level |
Confidence level for bootstrap confidence intervals. |
x |
An object of class |
... |
Additional arguments to be passed to the function. |
An object of class dda.vardist
containing the results of DDA tests
of asymmetry patterns of variable distributions.
An object of class dda.vardist
.
Wiedermann, W., & von Eye, A. (2025). Direction Dependence Analysis: Foundations and Statistical Methods. Cambridge, UK: Cambridge University Press.
cdda.vardist
for a conditional version.
set.seed(123)
n <- 500
x <- rchisq(n, df = 4) - 4
e <- rchisq(n, df = 3) - 3
y <- 0.5 * x + e
d <- data.frame(x, y)
result <- dda.vardist(y ~ x, pred = "x", data = d, B = 50)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.