spearr: Spearman regression coefficient

Description Usage Arguments Value References Examples

View source: R/packdepcoeff.R

Description

The function spearr evaluates the multivariate Spearman regression coefficient. It describes how well the target variable y can be fit by a function of regressor variables which is increasing w.r.t. some regressors and decreasing w.r.t. the other regressors.

Usage

1
spearr(x,y,direction=NULL,out=0)

Arguments

x

data matrix of regressor variables

y

data vector of the target variable

direction

vector of length d (d is number of regressors), value 1 refers to regressors leading to increasing y whenever this regressor increases, value -1 refers to regressors leading to decreasing y whenever this regressor increases. If direction=NULL, then all coefficients are computed.

out

value 1: full output, value 0: reduced output, only coefficients that are largest in absolute value

Value

list of Spearman regression coefficients for several directions

References

Eckhard Liebscher (2019). A copula-based dependence measure for regression analysis. submitted

Examples

1
2
3
library(MASS)
data <- gilgais
spearr(data[,1:3],data[,4],out=1)

depcoeff documentation built on Jan. 23, 2020, 5:06 p.m.

Related to spearr in depcoeff...