Skip to content
Prev 44475 / 398526 Next

How to repeat a procedure

Thanks, Patrick. I was aware of that and was able to fix it.

Thanks Tom, Wayne and Peter for all your help.

Heyen



                                                                                                                                       
                      Patrick Burns                                                                                                    
                      <pburns at pburns.se        To:       Thomas Lumley <tlumley at u.washington.edu>                                      
                      anet.com>                cc:       Haiyan Chen <hxc05 at health.state.ny.us>, R-help at stat.math.ethz.ch              
                                               Subject:  Re: [R] How to repeat a procedure                                             
                      02/18/2004 01:09                                                                                                 
                      PM                                                                                                               
                                                                                                                                       
                                                                                                                                       




I believe that Thomas got "mu" wrong.  If I understand
correctly, the line:

x3 <- rpois(50 * 100, rep(mu, each=100))

should read:

x3 <- rpois(50 * 100, rep(mu, 50))

or just

x3 <- rpois(50 * 100, mu)

Patrick Burns

Burns Statistics
patrick at burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")
Thomas Lumley wrote:

            
a
http://www.R-project.org/posting-guide.html