dist_approx_impl | R Documentation |
The method calculates either the euclidean distance between samples or proteins taking into account the missing values and the associated uncertainty. Because with missing value no single deterministic distance can be calculated two objects are returned: the mean and the associated standard deviation of the distance estimates.
## S4 method for signature 'proDAFit'
dist_approx(object, by_sample = TRUE, blind = TRUE)
## S4 method for signature 'SummarizedExperiment'
dist_approx(object, by_sample = TRUE, blind = TRUE, ...)
## S4 method for signature 'ANY'
dist_approx(object, by_sample = TRUE, blind = TRUE, ...)
object |
the 'proDAFit' object for which we calculate the distance or a matrix like object for which 'proDAFit' is created internally |
by_sample |
a boolean that indicates if the distances is calculated between the samples ('by_sample = TRUE') or between the proteins ('by_sample = FALSE'). Default: 'TRUE' |
blind |
fit an intercept model for the missing values to make sure that the results are not biased for the expected result. Default: 'TRUE' |
... |
additional arguments to |
a list with two elements: 'mean' and 'sd' both are formally of class "dist"
syn_data <- generate_synthetic_data(n_proteins = 10)
fit <- proDA(syn_data$Y, design = syn_data$groups)
dist_approx(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.