exact_dist | R Documentation |
This function calculates the exact distribution of number of detections of a lineup assuming every subject selects exactly one plot.
exact_dist(n_eval, n_plot = 20, dist = "dirichlet", alpha = 1)
n_eval |
Integer. Number of evaluations. |
n_plot |
Integer. Number of plots in the lineup. |
dist |
Character. Name of the distribution used for the attractiveness model. Currently, this can only be "dirichlet". |
alpha |
Numeric. A single parameter value used by the Dirichlet distribution. |
For a given lineup, plots are assumed to have weights
W_i, i = 1, ..., M,
where M
is the number of plots, and
W_i
follows a attractiveness distribution independently.
Currently, this function only supports Dirichlet distribution as
the attractiveness distribution.
Dirichlet distribution ensures the probability of every plot being selected
is evenly distributed in a standard M - 1
simplex.
A named vector representing the probability mass function of the distribution.
# The first person select 2 plots, the second one select 2 plots and
# the third one select 3 plots.
sim_dist(c(2,2,3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.