[R-SIG-Mac] generate random samples
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Jun 12 15:59:40 CEST 2008
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
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
--
Brian D. Ripley, ripley at stats.ox.ac.uk
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
More information about the R-SIG-Mac
mailing list