Calculate an approximate distance for 'object'

dist_approx(object, ...)

Arguments

object

the object for which the distance is approximated

...

additional arguments used by the concrete implementation

Value

a list with two elements: `mean` and `sd` both are formally of class "dist"

See also

dist for the base R function and dist_approx() concrete implementation for 'proDAFit' objects

Examples

syn_data <- generate_synthetic_data(n_proteins = 10) fit <- proDA(syn_data$Y, design = syn_data$groups) dist_approx(fit)
#> $mean #> Condition_1-1 Condition_1-2 Condition_1-3 Condition_2-1 #> Condition_1-2 0.6686112 #> Condition_1-3 0.6333797 1.0252265 #> Condition_2-1 1.1291368 1.4311641 0.8153001 #> Condition_2-2 1.3574750 1.8460632 1.0194694 1.3246348 #> Condition_2-3 0.7326668 0.9380487 0.6365297 0.7953301 #> Condition_2-2 #> Condition_1-2 #> Condition_1-3 #> Condition_2-1 #> Condition_2-2 #> Condition_2-3 1.4056250 #> #> $sd #> Condition_1-1 Condition_1-2 Condition_1-3 Condition_2-1 #> Condition_1-2 0.07325568 #> Condition_1-3 0.07623248 0.04771834 #> Condition_2-1 0.03669227 0.02998086 0.05157595 #> Condition_2-2 0.03515230 0.02771121 0.05005121 0.03163448 #> Condition_2-3 0.06491983 0.05237774 0.07493884 0.05195379 #> Condition_2-2 #> Condition_1-2 #> Condition_1-3 #> Condition_2-1 #> Condition_2-2 #> Condition_2-3 0.03640423 #>