Learn R Programming

truthiness (version 1.2.5)

simulate_category_guess: Simulate Guessing During the Categorization Task

Description

Run simulations tabulating the number of correct guesses assuming a participant is just guessing during the categorization task. This can be used to estimate a chance baseline on the 64 categorization trials.

Usage

simulate_category_guess(nruns = 10000)

Arguments

nruns

Number of simulation runs.

Value

A vector of length nruns with the number of correct guesses.

Examples

Run this code
# NOT RUN {
n_correct <- simulate_category_guess(1000)
hist(n_correct)
mean(n_correct)

# }

Run the code above in your browser using DataLab