Skip to content

Generation of Normal Random Numbers

3 messages · saggak, Michael Bedward, Jeff Newmiller

#
m <- c(1004.1, 1028.3, 1044.3, 861.4)
s <- c(194.5899, 158.7052, 123.3000, 285.8695)
x <- mapply(function(mi, si) rnorm(25, mi, si), m, s)

Hope this helps,

Michael
On 11 January 2011 17:44, saggak <saggak1908 at yahoo.co.in> wrote:
#
So you need to cbind the four vectors together... ?cbind
"saggak" <saggak1908 at yahoo.co.in> wrote:

            
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.