assocfun: Association Function

View source: R/effective_functions.r

assocfunR Documentation

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)

Arguments

xind

column index of the x-variable

yind

column index of the y-variable

data

data frame from which to pull the variables.

Value

a squared correlation.


davidaarmstrong/psre documentation built on Aug. 28, 2024, 6:35 a.m.