[R] random number generation

nmi13 NMI13 at student.canterbury.ac.nz
Tue Oct 28 13:20:01 CET 2003


Hi every one,

I am trying to generate a random variable with the following descriptive 
statistics,

min=1, max=99, variance=125, mean=38.32, 1st quartile=38, median=40, 3rd
quartile=40, skewness=-0.274.

I tried with rgamma and as I cannot use rnorm, can any one please suggest me 
what distribution would give me the negative skewness. I need to have the 
above mentioned descriptive statistics for the data generated.

I would be thankful to anyone who can help me with this problem.

Regards
Murthy




More information about the R-help mailing list