(This is a specialized function - it converts x into a dist. This is to enforce consistency when applying the 'method' function. e.g. to avoid confusion between mean(matrix) and mean(as.dist(matrix)), which are not the same)
1 | MPdistImpute(x, method = mean)
|
x |
matrix or dist object |
method |
function, is applied on x to find the imputed values. This function must be able to perform method(x, na.rm=TRUE) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.