Re: [R] from a normal bivariate distribution to the marginal one

2008-01-23 Thread Giovanni Petris
Somebody has already replied in probably more constructive terms. However, I would like to add a comment. > Now, I would like to find the marginal distribution of y from the > bivariate distribution. The distribution of y is a theoretical property that cannot be _found_ from a data set. You ca

Re: [R] from a normal bivariate distribution to the marginal one

2008-01-23 Thread David Winsemius
Elisabetta Petracci <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hello, > > I'm quite new with R and so I would like to know if there is a > command to calculate an integral. > In particular I simulated a bivariate normal distribution using > these simple lines: > > rbivnorm <- functi

[R] from a normal bivariate distribution to the marginal one

2008-01-23 Thread Elisabetta Petracci
Hello, I'm quite new with R and so I would like to know if there is a command to calculate an integral. In particular I simulated a bivariate normal distribution using these simple lines: rbivnorm <- function(n, # sample size mux, # expected value of x