Re: [R] error in "ca.jo"

2013-12-25 Thread John Sorkin
Please, everyone civility is a positive virtue J Sent from my iPhone > On Dec 25, 2013, at 7:11 PM, "Jeff Newmiller " > wrote: > > Out of context, I would agree with you. However, I stand behind it as regards > the original question... the OP should have had no trouble recognizing what > the

Re: [R] error in "ca.jo"

2013-12-25 Thread Jeff Newmiller
Out of context, I would agree with you. However, I stand behind it as regards the original question... the OP should have had no trouble recognizing what the error message meant and what to do about it if they were even somewhat familiar with the applicable theory (differential equations), and t

Re: [R] error in "ca.jo"

2013-12-25 Thread Andrew Robinson
I respectfully disagree. Taken out of context, this would be simply snark. Indeed, even in context, ... Cheers, Andrew On Thu, Dec 26, 2013 at 8:38 AM, Rolf Turner wrote: > On 25/12/13 06:23, Jeff Newmiller wrote: > > > >> In short, if you ask us why one divided by zero doesn't give 3, w

Re: [R] error in "ca.jo"

2013-12-25 Thread Rolf Turner
On 25/12/13 06:23, Jeff Newmiller wrote: In short, if you ask us why one divided by zero doesn't give 3, we have to wonder if you don't belong in some other educational forum. Fortune! cheers, Rolf Turner __ R-help@r-project.org

Re: [R] error in "ca.jo"

2013-12-24 Thread Jeff Newmiller
I am sorry you have chosen to interpret my response as unfriendly. I do not expect you or anyone posting here to be an expert before posting. However, the context here is that you have to read our responses anyway, so both Pat and I have recommended higher-quality reading material than we can wr

Re: [R] error in "ca.jo"

2013-12-24 Thread mamush bukana
Hi Jeff, >From your words (if our words really describe us), I hope you don't expect me to teach you that this is "r-help" room. I don't expect you to tell me that I am a layman. I already know it and that is why I am here seeking a help. If I am an expert of things I asked here, there is no need f

Re: [R] error in "ca.jo"

2013-12-24 Thread Jeff Newmiller
Once you start describing your code in language that indicates you have read some of the recommended materials, we can make some progress. For example, you are still posting in HTML format so your code is getting mangled (see Posting Guide). You don't seem to understand what tryCatch does (see ?

Re: [R] error in "ca.jo"

2013-12-24 Thread mamush bukana
Dear Pat, I tried your suggestion: for(i in 1:N1){ for(j in 1:N2){ co<-tryCatch(ca.jo (data.frame(cbind(y2[ i,j,],y1[i,j,])),type="trace", K=2, spec="transitory",ecdet="const",season=NULL,dumvar=NULL),error=function(e) NaN) }} and the earlier error does not show up. However, when I t

Re: [R] error in "ca.jo"

2013-12-23 Thread Patrick Burns
There is a fundamental problem with your code, and there is the problem that you have (sort of) identified. The fundamental problem is that you are only going to get the results of the last call to 'ca.jo' that is done -- assuming it were to run. You presumably want to save some information from

[R] error in "ca.jo"

2013-12-23 Thread mamush bukana
Dear all, I fit co-integration function between two integrated variables(y1 and y2) over different grid points: for(i in 1:N1){ for(j in 1:N2){ co<-ca.jo(data.frame(cbind(y2[i,j,],y1[i,j,])),type="trace", K=2, spec="transitory",ecdet="const",season=NULL,dumvar=NULL) }} I have already extracted gr