Skip to content
Prev 172943 / 398525 Next

multivariate integration and partial differentiation

Hi,

The "adapt" package might work, but note that it cannot handle infinite limits.  So, integrate() is your best bet.  Since you need to integrate out only one dimension, integrate() would work just fine. 

As for differentiation, you might try the grad() fucntion in the "numDeriv" package.

Ravi.

____________________________________________________________________

Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University

Ph. (410) 502-2619
email: rvaradhan at jhmi.edu


----- Original Message -----
From: Wei-han Liu <weihanliu2002 at yahoo.com>
Date: Saturday, March 7, 2009 9:38 am
Subject: [R] multivariate integration and partial differentiation
To: r-help at r-project.org