Learn R Programming

raptr (version 1.0.1)

urap.proportion.held: 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)))

Value

numeric value indicating the proportion of variation that x explains in 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.

Examples

Run this code
if (FALSE) {
urap.proportion.held(as.matrix(iris[1:2,-5]), as.matrix(iris[1:5,-5]))
}

Run the code above in your browser using DataLab