calculate_gof: Do goodness-of-fit calculations

Description Usage Arguments Value

View source: R/sigfit_utility.R

Description

calculate_gof Calculates the goodness-of-fit information for a set of samples, each of which has typically been sampled using an signature extraction model with a different number of signatures.

Usage

1
calculate_gof(sample_list, stat = "cosine")

Arguments

sample_list

List containing the results of signature extraction using extract_signatures with multiple numbers of signatures (see argument nsignatures in extract_signatures).

stat

Function for measuring goodness-of-fit. Admits character values "cosine" (cosine similarity, default) or "L2" (L2 norm or Euclidean distance).

Value

List of nS, number of signatures; gof, goodness of fit score; best, index of best scoring signature; stat, the statistic used to calculate goodness of fit (cosine or L2); model, sigfit model name obtained from the samples.


kgori/sigfit documentation built on Feb. 3, 2022, 12:04 p.m.