get_fit | R Documentation |
This is like function get_input
, but for fit information.
With this getter you can obtain:
segment parameters (scaling factors and component-specific values for the used distributions);
inferred Copy Number Alteration (CNA) values;
the posterior distribution over CNAs;
mixing proportions;
clustering assignments;
z_nk (the latent variables of the model)
Like get_input
, the function uses the what
parameter to return the
appropriate type of information.
get_fit(x, what = "CNA")
x |
An object of class |
what |
Any of |
A tibble; its format depends on what
. See the examples.
data(example_object)
# Extract segment parameters
get_fit(example_object, what = 'segment_parameters')
# Extract CNAs
get_fit(example_object, what = 'CNA')
# Extract CNAs
get_fit(example_object, what = 'posterior_CNA')
# Extract mixing proportions
get_fit(example_object, what = 'mixing_proportions')
# Extract clustering assignments
get_fit(example_object, what = 'cluster_assignments')
# Extract the clustering responsibilities
get_fit(example_object, what = 'z_nk')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.