cost: Cost function

Description Usage Arguments Details Value

Description

cost() .

Usage

1
cost(X, y, theta, lambda)

Arguments

X

Design matrix X.

y

Vector of observations.

theta

Vector of starting values for coefficients of length ncol(X)+1.

lambda

Regularisation parameter.

Details

Internal function supplied to optim which calculates cost function

Value

Returns the cost of the current parameters theta.


ivyleavedtoadflax/vlrr documentation built on May 18, 2019, 7:14 a.m.