Title
compare_new_to_rest_via_distance( tdmat, new_name_id = data.frame(id = "true observation"), distance_func = distance_psuedo_density_function, ..., df_out = T )
tdmat | must be a |
---|---|
new_name_id | data.frame containing which rownames of the |
distance_func | distance function to calculates some type of ordering between observations with the distance matrix. This package currently provides 3 functions for this:
If you are trying to make your own, please see examples of these methods for
the |
... | additional parameters to be passed to the dist_func |
df_out | indicates if one should return a data.frame or a list, by default returns data.frame. |
returns either a data.frame with information about quantile score value for new observations, the proportion of the simulations that have more extreme values than it and the observations names (if df_out = T), else it returns a list of quatile scores and proportion of simulations that had more extreme values than it.