[R] question about random variable generating function
xt_wang at cs.concordia.ca
Fri Aug 6 03:34:29 CEST 2004
I have questions about functions in chapter 5: The R API:entry points for c
code in "writing R Extensions".
They are :
1. double rnorm(double mu, double sigma)
2. double norm_rand()
question is: which of the above two functions can be used to generate a random
variable of normal distribution?
If norm_rand() is the function, how can I generate random variables whose
mean=0 and standard deviation=5? As I know, it is used to generate a random
variable which mean=0,std=1.
I will appreciate very much if anybody can help me.
Thanks in advance!
More information about the R-help