Hello all!!! 1) I am wondering is there a way to generate random numbers in R for Bivariate Uniform distribution? 2) Does R haveĀ built-in function for generating random numbers for any given bivariate distribution. Any help would be greatly appreciated !! Good day! Haneef Anver [[alternative HTML version deleted]]
The runif function generates random numbers from a uniform distribution, wrap those values into a matrix and you have a multi dimensional uniform distribution. If you want more than this, give us more detail. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Haneef Anver > Sent: Wednesday, February 10, 2010 1:29 PM > To: r-help at r-project.org > Subject: [R] Sampling from Bivariate Uniform Distribution > > Hello all!!! > > > 1) I am wondering is there a way to generate random numbers in R for > Bivariate Uniform distribution? > > > 2) Does R have? built-in function for generating random numbers for any > given bivariate distribution. > > Any help would be greatly appreciated !! > > > Good day! > > > Haneef Anver > > > > > > > [[alternative HTML version deleted]]
When I wrap those values in to a matrix will it be still independent ? ( non zero correlation). Can I do this for any multivariate distribution which has the univariate form? Thank you for the response. Haneef -- View this message in context: http://n4.nabble.com/Sampling-from-Bivariate-Uniform-Distribution-tp1476485p1556481.html Sent from the R help mailing list archive at Nabble.com.
The correlation will not be exactly 0, but will represent a draw from an independent population. There may be something in the copulas package to allow for more independence (but that about exhausts my knowledge of that package). -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Haneef_An > Sent: Monday, February 15, 2010 11:53 AM > To: r-help at r-project.org > Subject: Re: [R] Sampling from Bivariate Uniform Distribution > > > When I wrap those values in to a matrix will it be still independent ? > ( non > zero correlation). > > Can I do this for any multivariate distribution which has the > univariate > form? > > Thank you for the response. > > Haneef > -- > View this message in context: http://n4.nabble.com/Sampling-from- > Bivariate-Uniform-Distribution-tp1476485p1556481.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code.