[R] Calculating interval for conditional/unconditional correlation matrix
m_olshansky at yahoo.com
Mon Sep 22 04:54:28 CEST 2008
There are two problems:
First of all, if you want your matrix to have 4 columns it's number of elements should not be 17!
Secondly, and this is what causes your error message, you should not call your second function matrix. Call it matrix1, my_matrix, whatever. Otherwise R thinks that you are calling your matrix function within itself.
--- On Sun, 21/9/08, Ana Kolar <annakolar at yahoo.com> wrote:
> From: Ana Kolar <annakolar at yahoo.com>
> Subject: [R] Calculating interval for conditional/unconditional correlation matrix
> To: "R" <r-help at r-project.org>
> Received: Sunday, 21 September, 2008, 8:05 PM
> Hi there,
> Could anyone please help me to understand what should be
> done in order not to get this error message: Error:
> evaluation nested too deeply: infinite recursion /
> Here is my code:
> interval<-uniroot(determinant,lower = min(c(0,1)), upper
> = max(c(0,1)))
> I tried also with the code below, but got the same Error
> Your help will be greatly appreciate!
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained,
> reproducible code.
More information about the R-help