Learn R Programming

raptr (version 0.0.3)

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)))

Arguments

x

matrix of points

y

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

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

Run the code above in your browser using DataLab