Re: [R] Sampling from Bivariate Uniform Distribution

2010-02-16 Thread Greg Snow
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.s...@imail.org
801.408.8111


> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of Haneef_An
> Sent: Monday, February 15, 2010 11:53 AM
> To: r-help@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@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.

__
R-help@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.


Re: [R] Sampling from Bivariate Uniform Distribution

2010-02-15 Thread Haneef_An

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@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.


Re: [R] Sampling from Bivariate Uniform Distribution

2010-02-10 Thread Greg Snow
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.s...@imail.org
801.408.8111


> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of Haneef Anver
> Sent: Wednesday, February 10, 2010 1:29 PM
> To: r-help@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]]

__
R-help@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.


[R] Sampling from Bivariate Uniform Distribution

2010-02-10 Thread Haneef Anver
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]]

__
R-help@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.