Learn R Programming

qad (version 1.0.4)

qad-package: Quantification of Asymmetric Dependencies

Description

A copula-based measure for quantifying asymmetry in dependence and associations.

Arguments

Author

Florian Griessenberger: florian.griessenberger@sbg.ac.at,
Robert R. Junker: Robert.Junker@sbg.ac.at,
Valentin Petztel,
Wolfgang Trutschnig: Wolfgang.Trutschnig@sbg.ac.at

Details

Package:qad
Type:Package
Version:1.0.0
Date:2021-02-26

Examples

Run this code
# #Create data set
# n <- 100
# x <- rnorm(n,0,2)
# y <- x^2 + rnorm(n)
# sample <- data.frame(x,y)
# plot(sample, pch = 16)
#
#
# #Function: qad()
# qad(sample, p.value = TRUE, p.value_asymmetry = TRUE)
# fit <- qad(sample)
# plot(fit)
# plot(fit, copula = TRUE)
# plot(fit, copula = TRUE, addSample = T)
#
# #Functions: summary(), coef()
# summary(fit)
# coef(fit)
#
# #Function: predict()
# values <- c(-2.4,1,0,2.6)
# predict.qad(fit, values = values, conditioned = 'x1')
# predict(fit, values, conditioned = "x1", pred_plot = TRUE, panel.grid = FALSE)
#
# values <- c(0.1,0.5)
# predict(fit, values, conditioned = "x2", copula = TRUE, pred_plot = TRUE)
#
# #Function: pairwise.qad and heatmap.qad
# df <- iris[1:4]
# mod <- pairwise.qad(df)
# heatmap.qad(mod, select = 'dependence')

Run the code above in your browser using DataLab