Description Usage Arguments Details Value See Also Examples
malDist
returns a vector indicating the Mahalanobis Distance for each participant in a
dataframe.
1 |
x |
An |
nitems |
An integer. If dataset is multivariate, indicate the number of items per scale. At present, this is only defined for factors assessed with the same number of indicators. |
By default, this function is designed for univariate tests, and assumes that all variables
passed belong to the same factor. However, see nitems
if there is a multidimensional
structure. Note: if the data are passed as factors, it is converted to integer before
calculating the Mahalanobis Distance. If missing data is present, the function will return
NA
for that observation.
A vector of type numeric. If nitems
is given, the return is of type matrix and contains
one vector per factor (D1...Dn), as well as their average (AverageD).
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.