I'm not sure your request completely makes sense: marginal means and variances 
are not sufficient to give the joint distribution; even if you can be assured 
it is bivariate normal, you still need a correlation. Just a heads up

Michael. 

PS - next time would you please use a slightly more nuanced subject line for 
the archive? Thanks. 

On Nov 15, 2011, at 1:31 PM, David Winsemius <dwinsem...@comcast.net> wrote:

> 
> On Nov 15, 2011, at 11:21 AM, Gyanendra Pokharel wrote:
> 
>> Hi all,
>> I have the mean vector mu<- c(0,0) and variance sigma <- c(10,10), now how
>> to sample from the bivariate normal density in R?
>> Can some one suggest me?
>> I did not fine the function "mvdnorm" in R.
> 
> But when you typed ?mvdnorm R should have returned message to type ??mvdnorm. 
> I get a tone of on target "hits" when I do that.
> 
> (... and I think you may not get as many hits because I have a bunch of 
> package installed but there was a hit from MASS which I think is installed by 
> default ....)
> 
> -- 
> 
> David Winsemius, MD
> West Hartford, CT
> 
> ______________________________________________
> 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.

Reply via email to