Dear Community,
I want to generate x random numbers and compute some descripive statistics on the results.
Than I round the values of the random numbers and want to know, how my desriptive
statistics have changed. I want to make this process n times. I have two questions.
1. Is there a way to set the roundings Base, I mean to the nearest 0,1 or 10. Not just
integers but other rounding rules I mean.
2. Why can't I store my results to the xxx.gdt using the store command? I get the
message:
'a' is not the name of a variable
> store xxx.gdt a b a2 b2
I know a is a scalar, but how do I store it than?
Thanks for your help, and if you know any papers/articles on this topic, please let me
know!
Have a nice day!
Kehl Dániel
University of Pécs, Hungary
my (first in my life) script is:
loop n
loop x
genr u = normal()
genr u2 = round(u)
endloop
summary u
summary u2
genr a = mean(u)
genr b = sd(u)
genr a2 = mean(u2)
genr b2 =sd(u2)
store xxx.gdt a b a2 b2
endloop