sparsediscrim icon indicating copy to clipboard operation
sparsediscrim copied to clipboard

prior option Incorrectly Documented

Open DarioS opened this issue 7 years ago • 0 comments

It is documented as

prior vector with prior probabilities for each class. If NULL (default), then equal probabilities are used.

However, the code uses probabilities proportional to class size in diag_estimates if not user-specified which dlda depends on to do calculations.

  if (is.null(prior)) {
    prior <- as.vector(table(y) / length(y))
}

Also, dlda has ... which is not passed to diag_estimates which means it's not possible to change est_mean to "tong", for example.

DarioS avatar Sep 03 '18 01:09 DarioS