averageSimilarity: Calculate Average Similarity

Description Usage Arguments Value Author(s) See Also Examples

View source: R/averageSimilarity.R

Description

Calculate the average weighted similarity for all participants.

Usage

1
averageSimilarity(dataframe, similarity_measures, k, up_down_weight = "down")

Arguments

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?

Value

Original dataframe with an additional vector that is the averaged weight of the similarity measures provided.

Author(s)

Jeffrey Ziegler (<jeffrey.ziegler[at]emory.edu>)

See Also

regressionComparison

Examples

1
averageSimilarity(dataframe=replication_complete.cases, similarity_measures=c("jaccardDist", "cosineDist"),  k=3)

zieglerjef/openEnded documentation built on Nov. 30, 2020, 2:03 p.m.