Cosine-Correlation Coefficient for Vector Variables

Computes the cosine-correlation coefficient for measuring the degree of linear dependence among variables in a multidimensional context. The package implements the generalized cosine-correlation theorem for p-1 variables, providing a quantitative assessment of interrelationships within experimental frameworks. This methodology extends classical correlation measures to higher-dimensional spaces using a dimensional exploration approach based on time scale calculus.


cosCorr

Overview

The cosCorr package implements the cosine-correlation coefficient, a novel measure for assessing the degree of linear dependence among variables in a multidimensional context.

Installation

install.packages("cosCorr")

Usage

library(cosCorr)

# Simple example
x <- c(0, 2, 3, 4)
rho <- cosCorr(x)
print(rho)

Mathematical Foundation

The cosine-correlation coefficient is defined as:

rho = [(p-1) * prod(|t_i|)] / sum(|t_i|^(p-1))

where t_1 = 0 and t_2, ..., t_p are the variables in the system.

Author

Mehmet Niyazi Cankaya

Faculty of Applied Sciences

Department of International Trading and Finance

Usak University, Usak, Turkey

Email: [email protected]

Reference

Cankaya, M. N. (2025). Derivatives through Probes in Regular Geometric Objects: A Dimensional Exploration for qqq-Sets in Time Scale Calculus. Fractals, in printing progress.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cosCorr")

1.0.0 by Mehmet Niyazi Cankaya, 10 months ago


Browse source code at https://github.com/cran/cosCorr


Authors: Mehmet Niyazi Cankaya [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports stats

Suggests knitr, rmarkdown, testthat


See at CRAN