[R] Help with generating data from a 'not quite' Normal distriburtion
dimitris.rizopoulos at med.kuleuven.ac.be
Thu Aug 12 10:50:52 CEST 2004
you could try a Student's t distribution with appropriate degrees of
freedom and extra scale paremter, i.e.,
rgt <- function(n, mu=0, sigma=1, df=stop("no df arg")) mu+sigma*rt(n,
I hope this helps.
School of Public Health
Catholic University of Leuven
Address: Kapucijnenvoer 35, Leuven, Belgium
----- Original Message -----
From: "Crabb, David" <david.crabb at ntu.ac.uk>
To: <r-help at stat.math.ethz.ch>
Sent: Thursday, August 12, 2004 10:44 AM
Subject: [R] Help with generating data from a 'not quite' Normal
> I would be very grateful for any help from members of this list for
> might be a simple problem...
> We are trying to simulate the behaviour of a clinical measurement in
> series of computer experiments. This is simple enough to do in R if
> assume the measurements to be Gaussian, but their empirical
> has a much higher peak at the mean and the distribution has much
> tails. (The distribution is quite symmetrical) Can anyone suggest
> distributions I could fit to this data, and better still how I can
> generate random data from this 'distribution' using R?
> Dr. David Crabb
> School of Science,
> The Nottingham Trent University,
> Clifton Campus, Nottingham. NG11 8NS
> Tel: 0115 848 3275 Fax: 0115 848 6690
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
More information about the R-help