the rule is: for(i in 1:10){v[i]=f(q,m)}
. f(q,m) is a function that generates random outputs in an interval according to the inputs q, m. 'v' is the vector.
After specifying the components of v that way, I can type v, and return the vector. What I would like to be able to do is define a function that takes the inputs q,m and returns the vector, v.
The reason is eventually I want to be able to graph the mean of v, ranging over the variable q. but i need a function that returns v first, i think. So any advice on how to define such a function would be greatly appreciated.
Thanks.