[R] how to generate a normal distribution with mean=1, min=0.2, max=0.8

From: Mao Jianfeng <jianfeng.mao_at_gmail.com>
Date: Thu, 28 Apr 2011 18:01:47 +0200


Dear all,

This is a simple probability problem. I want to know, How to generate a normal distribution with mean=1, min=0.2 and max=0.8?

I know how the generate a normal distribution of mean = 1 and sd = 1 and with 500 data point.

rnorm(n=500, m=1, sd=1)

But, I am confusing with how to generate a normal distribution with expected min and max. I expect to hear your directions.

Thanks in advance.

Best,
Jian-Feng,

        [[alternative HTML version deleted]]



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. Received on Thu 28 Apr 2011 - 16:04:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 28 Apr 2011 - 16:20:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive