compare_k_vals | R Documentation |
Compare the stability and error of various k values to help determine the correct number of signatures (k).
compare_k_vals(
musica,
modality,
reps = 100,
min_k = 1,
max_k = 10,
error_type = "prop",
algorithm = "nmf"
)
musica |
A |
modality |
The modality to use, either "SBS96", "DBS78", or "IND83". |
reps |
Number of times prediction is performed. For each replicate, the
count table data is perturbed. Multiple replicates allows for stability
analysis by calculating silhouette width on the multiple results. Default
|
min_k |
Lower range of number of signatures for discovery. Default
|
max_k |
Upper range of number of signatures for discovery. Default
|
error_type |
Whether to calculate reconstruction error by proportions
("prop") or raw counts ("raw"). Default |
algorithm |
Algorithm for signature discovery. Default |
a data.frame with stats for each k value tested
data(musica)
compare_k_vals(musica, "SBS96", reps = 3, min_k = 1, max_k = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.