Description Usage Arguments Value Examples
Create a sample for a likert scale score with given mean and st.dev. This uses a primitive type of simulated annealing for the search. This was written to test the existence of fraudulent numbers in a manuscript by Diederik Stapel.
1 2 | fake_likert(N = 16, M = 5, m = 3, d = 1, s = 2, rep.count = 250000,
eps = 0.005, base = 0, T = 4, test = FALSE)
|
N |
the number of observations |
M |
the highest score |
m |
the mean to approach |
d |
the number of scores from base to M that are averaged (usually 1) |
s |
the standard deviation to approach |
rep.count |
the maximum number of try's |
eps |
the tolerance for |m-s| |
base |
the lowest value of the score (usually 0 or 1) |
T |
the temperature (set to higher values below sqrt(rep.count) to find rare solutions) |
test |
set to TRUE to print some test information from the fucntion |
a vector with N integers on the likert scale
1 | # fake_likert(N=16, M=7, base=1, m=4.6, s=3.6) # Cannot exist. Should fail
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.