objectiveFast: Shortcut computation for NPMR objective function

Description Usage Arguments Value Author(s) References See Also

View source: R/objectiveFast.R

Description

Computes the objective function for NPMR more quickly than objective by leveraging pre-computed fitted values, which is the bottleneck in computing the objective. Intended for internal use only.

Usage

1
objectiveFast(B, P, W, lambda)

Arguments

B

fitted regression coefficient matrix

P

matrix of fitted multinomial class probabilities

W

vector containing indices of P which correspond to observed data

lambda

regularization parameter (maybe be a vector of values)

Value

a vector of objective values for the NPMR optimization problem, one for each value of lambda

Author(s)

Scott Powers, Trevor Hastie, Rob Tibshirani

References

Scott Powers, Trevor Hastie and Rob Tibshirani (2016). “Nuclear penalized multinomial regression with an application to predicting at bat outcomes in baseball.” In prep.

See Also

objective, nuclear, PGDnpmr


npmr documentation built on May 2, 2019, 3:16 p.m.