Re: [R] integration

From: Ravi Varadhan <rvaradhan_at_jhmi.edu>
Date: Fri, 08 Apr 2011 22:46:14 -0400

?integrate



From: r-help-bounces_at_r-project.org [r-help-bounces_at_r-project.org] On Behalf Of cindy Guo [cindy.guo3_at_gmail.com] Sent: Friday, April 08, 2011 9:21 PM
To: r-help_at_r-project.org
Subject: [R] integration

Hi, All,

I have a density function with 3 variables which is defined on some irregular domain, and I want to get the marginal distribution of each variable. Is there any function doing this?

A simple example is p(x,y,z)=x*y*z*I(xy>z). So each marginal distribution is a function of the other two variables. My density form is very complicated, so I cannot do it by hand. I was just wondering if there is any function in R for this?

Thanks,

Cindy

        [[alternative HTML version deleted]]



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.

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. Received on Sat 09 Apr 2011 - 02:50:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 09 Apr 2011 - 21:40:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive