Learn R Programming

sparsediscrim (version 0.2.4)

update_hdrda: Helper function to update tuning parameters for the HDRDA classifier

Description

This function updates some of the quantities in the HDRDA classifier based on updated values of lambda and gamma. The update can greatly expedite cross-validation to examine a large grid of values for lambda and gamma.

Usage

update_hdrda(obj, lambda = 1, gamma = 0)

Arguments

obj

a hdrda object

lambda

a numeric value between 0 and 1, inclusively

gamma

a numeric value (nonnegative)

Value

a hdrda object with updated estimates