Dear: Anyone has experience to use R integrate a function with more than two dimensions, but you only need to integrate the function respect to one variable, say x. Because I also want to maximise the log-likelihood after integration of function respect to x. Thanks! Xin ------- Dr.Xin Shi Senior Lecturer in Statistics Manchester Metropolitan University Business School Aytoun Building Aytoun Street Manchester M1 3GH United Kingdom Telephone: +44 (0)161 247 3841 Fax: +44(0)161 247 6317 E-mail: X.Shi at mmu.ac.uk Before acting on this email or opening any attachments you should read the Manchester Metropolitan University's email disclaimer available on its website: http://www.mmu.ac.uk/emaildisclaimer