Description Usage Arguments Value Author(s) See Also Examples
View source: R/averageSimilarity.R
Calculate the average weighted similarity for all participants.
1 | averageSimilarity(dataframe, similarity_measures, k, up_down_weight = "down")
|
dataframe |
Dataframe from which you will select the similarity measures to be used to calculate the weights. |
similarity_measures |
Vector(s) from dataframe that contains the similarity measures to be used as weights. |
k |
The penalty that you want to set for down-weighting inattentive respondents. Lower levels of k down-weight low attention participants more severely. |
up_down_weight |
Do you want to up-weight or down-weight? |
Original dataframe with an additional vector that is the averaged weight of the similarity measures provided.
Jeffrey Ziegler (<jeffrey.ziegler[at]emory.edu>)
1 | averageSimilarity(dataframe=replication_complete.cases, similarity_measures=c("jaccardDist", "cosineDist"), k=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.