Missing values are handled pairwise: each pair of samples is compared on the markers (or sites) both of them have.
Arguments
- d
A
cl_dataobject.- method
A method from
distance_choices(); the default for the data type ifNULL.- sqrt_binary
Use sqrt(1 - S) for binary measures.
- scale
Scale numeric traits to unit variance before Euclidean or Manhattan distances.
Details
Binary measures are returned as 1 minus the similarity. Set
sqrt_binary = TRUE for the square root form that ade4::dist.binary()
returns, which is Euclidean. For biallelic SNPs, IBS distance equals
Prevosti's distance.
Examples
d <- clusnalyst_demo("binary")
dm <- compute_distance(d, "jaccard")