Please ask such non-Mac-specific questions on R-help.

For 'arbitrary', no.  But there are lots of helpers, including
Runuran, SuppDists and distrSim, which cover lots of univariate distribtutions. There are lots of multivariate ones implemented too, often in packages that make use of MCMC. But you cannot even define an arbitrary distribution in a unified way.

On Thu, 12 Jun 2008, mathfrog wrote:

Hi,
I a newbie, I work with a mac.
Is there any package that I can use to generate random samples for arbitrary distribution, that is , user defined distribution ?

like the simplest
x <- rnorm( something )

and that is a normal distribution.
--------------------------
Peng Jiang
江鹏
Ph.D. Candidate

Antai College of Economics & Management
安泰经济管理学院
Department of Mathematics
数学系
Shanghai Jiaotong University (Minhang Campus)
800 Dongchuan Road
200240 Shanghai
P. R. China

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

--
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to