plot_nnm_obj: MM Algorithm - Plot NNM Objective

Description Usage Arguments Author(s) Examples

View source: R/nonnegativeleastsquares.R

Description

plot_nnm_obj Function for plotting the NNM Objective Function

Usage

1
plot_nnm_obj(y, X, b, max_iter = 100)

Arguments

y

Nonnegative response

X

Nonnegative design matrix

b

Nonnegative initial regression vector

max_iter

(Optional) Maximum number of iterations

Author(s)

Jocelyn T. Chi

Examples

1
2
3
4
5
6
7
8
set.seed(12345)
n <- 100
p <- 3
X <- matrix(rexp(n*p,rate=1),n,p)
b <- matrix(runif(p),p,1)
y <- X %*% b + matrix(abs(rnorm(n)),n,1)

plot_nnm_obj(y,X,b)

gettingtothebottom documentation built on May 29, 2017, 8:28 p.m.