Learn R Programming

generalCorr (version 1.2.6)

heurist: Heuristic t test of the difference between two generalized correlations.

Description

Function to run a heuristic t test of the difference between two generalized correlations.

Usage

heurist(rxy, ryx, n)

Value

Prints the t statistics and p-values.

Arguments

rxy

generalized correlation r*(x|y) where y is the kernel cause.

ryx

generalized correlation r*(y|x) where x is the kernel cause.

n

Sample size needed to determine the degrees of freedom for the t test.

Author

Prof. H. D. Vinod, Economics Dept., Fordham University, NY

Examples

Run this code

set.seed(34);x=sample(1:10);y=sample(2:11)
g1=gmcxy_np(x,y)
n=length(x)
h1=heurist(g1$corxy,g1$coryx,n)
print(h1)
print(h1$t) #t statistic
print(h1$p) #p-value

Run the code above in your browser using DataLab