kmo_optimal_solution: Calculates the Optimal Solution for Kayser-Meyer-Olkin (KMO) in a Dataframe
Description
kmo_optimal_solution() call upon the kmo function to iterate over the variables of a dataframe.
Usage
kmo_optimal_solution(df, squared = TRUE)
Arguments
df
a dataframe with only int or num type of variables
squared
TRUE if matrix is squared (such as adjacency matrices), FALSE otherwise
Value
A list with
df - A dataframe that has reached its optimal solution in terms of KMO values
removed - A list of removed variables ordened by the first to last removed during the procedure
kmo_results - Results of the final iteration of the kmo function
Details
If finds any individual KMO's below the optimal value of 0.5 then removes the lowest KMO value variable until no more variable has not-optimal KMO values.