urap.proportion.held: Proportion held using unreliable RAP formulation.

View source: R/urap.proportion.held.R

urap.proportion.heldR Documentation

Proportion held using unreliable RAP formulation.

Description

This is a convenience function to quickly calculate the proportion of variation that one set of points captures in a another set of points using the unreliable formulation.

Usage

urap.proportion.held(x, y, y.weights = rep(1, nrow(y)))

Arguments

x

base::matrix() of points

y

base::matrix() of points

y.weights

numeric vector of weights for each point in y. Defaults to equal weights for all points in y.

Value

numeric value indicating the proportion of variation that x explains in y

Examples

## Not run: 
urap.proportion.held(as.matrix(iris[1:2,-5]), as.matrix(iris[1:5,-5]))

## End(Not run)

jeffreyhanson/raptr documentation built on Feb. 3, 2024, 10:56 p.m.