Skip to content
Prev 75403 / 398502 Next

A coding question involving variable assignments

Ted and List,

What I need is I need to know what max of rnorm(rpois(1,10)) is before
R does sum(), replicate(10, ...) and replicate(5, ...).

The fact that you have set.seed(99) twice, does that mean, say, entry
[1,1] 0.4896243 in 'mx' is one of the z number of values generated by
rnorm(rpois(1,10)) that add up to [1,1]  -2.0071674 in 'x'?  Another
way to ask the question, I guess, is, by doing set.seed(99) twice are
the values generated by rnorm(rpois(1,10)) for 'x' same as those for
'mx'?
On 8/11/05, ecatchpole <e.catchpole at adfa.edu.au> wrote: