Learn R Programming

psre (version 0.1.2)

assocfun: Association Function

Description

Calculates the R-squared from a LOESS regression of y on x. Can be used with outer to produce the a non-parametric correlation matrix.

Usage

assocfun(xind, yind, data)

Value

a squared correlation.

Arguments

xind

column index of the x-variable

yind

column index of the y-variable

data

data frame from which to pull the variables.