Your question makes no sense as stated.  However, guessing at what you 
want, you should  perhaps consider the non-central chi-square density with 
1 df and ncp = u/a, i.e,

rchisq(100, df=1, ncp=u/a)

Joe



Joseph F. Lucke, PhD
Senior Statistician
Research Institute on Addictions
University at Buffalo
State University of New York
1021 Main Street
Buffalo, NY  14203-1016






Chien-Pang Chin <[email protected]> 
Sent by: "R-help" <[email protected]>
09/15/2015 06:58 AM

To
"[email protected]" <[email protected]>, 
cc

Subject
[R] Beta distribution approximate to Normal distribution






Hi,

I need to generate 1000 numbers from N(u, a^2), however I don't want to 
include 0 and negative values. How can I use beta distribution approximate 
to N(u, a^2) in R.

Thx for help

______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
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.


        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to