Hey all,
i want to set a default value (initial value) in formfields that is randomly drawn according to a special probability function. [with a certain probability (p) it is a constant and with a probability (1-p) it is randomly drawn from a normal distribution in the interval (a,b)].
I want to save the default value (initial value) to use it in my statistical analysis later on. I addition, want to program an audit rule that depends on the initial value. Therefore, I have to use the initial value in a function later on.
I read in the otree documentation [About using random()] that I cannot programm a random constant. Instead I have to programm a function. Now, I am totally confused because I really cannot figure out how to solve my problem!
Hopefully, somebody can help me to resolve my confusion. Many thanks!
Best,
Monique