Learn R Programming

nullabor (version 0.3.12)

visual_power: Power calculations.

Description

This function simply counts the proportion of people who selected the data plot, in a set of lineups. It adjusts for multiple picks by the same individual, by weighting by the total number of choices.

Usage

visual_power(data, m = 20)

Value

vector of powers for each pic_id

Arguments

data

summary of the results, containing columns id, pic_id, response, detected

m

size of the lineup

Examples

Run this code
data(turk_results)
visual_power(turk_results)

Run the code above in your browser using DataLab