[R] Help with normal distribution in random samples...

Mike Lawrence mike at thatmike.com
Wed Jan 28 22:23:35 CET 2009


?rnorm

On Wed, Jan 28, 2009 at 4:04 PM, Sea Captain 1779 <dbowen at measinc.com> wrote:
>
> Hi!!!
>
> First time 'R' user looking for a little assistance.  Here is what I have so
> far:
>
> practice1 = matrix ((runif(5000, min =0, max = 12)), 100)
>
> which is creating 50 samples, for 100 cases, distributed between 0-12.  What
> I would like is to be able to set the mean and SD so that the data is
> normally distributed around lets say 7.  Any help I can get with achieving
> that goal would be greatly appreciated!!!
>
> -Dan
> --
> View this message in context: http://www.nabble.com/Help-with-normal-distribution-in-random-samples...-tp21713636p21713636.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Mike Lawrence
Graduate Student
Department of Psychology
Dalhousie University
www.thatmike.com

Looking to arrange a meeting? Check my public calendar:
http://www.thatmike.com/mikes-public-calendar

~ Certainty is folly... I think. ~




More information about the R-help mailing list