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 can use a set of data to _estimate_ a distribution (this is what density() does), but if you want to _find_ the distribution of y then you have to take paper and pencil and work it out. R can do it for you numerically (using integrate()) but, again, in this case you don't need any data. Best, Giovanni -- Giovanni Petris <[EMAIL PROTECTED]> Department of Mathematical Sciences University of Arkansas - Fayetteville, AR 72701 Ph: (479) 575-6324, 575-8630 (fax) http://definetti.uark.edu/~gpetris/ ______________________________________________ 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.