pcls2: pcls2

Description Usage Arguments Value Examples

View source: R/pcls2.R

Description

Solve the positively constrained least squares problem with 2 explanatory variables.

Usage

1
pcls2(X, Y)

Arguments

X

a dataframe containing the explanatory variables (2 columns)

Y

a dataframe containing the response vector

Value

a list containing the optimal parameter vector and the vector of Lagrange multipliers

Examples

1
results <- pcls2(X = data.frame(runif(3), runif(3)), Y = data.frame(1:3))

Jawad-Boulahfa/nnls2d documentation built on Sept. 3, 2020, 10:37 p.m.