[R] inner loop problem!?

2007-04-24 Thread Christian Schulz
Hi, i have 656 attributes ind INTERVALL_VAR 119 in GROUP and this morning i'm little confused why the inner loop hang if it arrive 656th column. My Task is a t-test and correlation with all columns in INTERVALL_VAR for all attributes in GROUP. many thanks regards, christian for( k in

Re: [R] inner loop problem!?

2007-04-24 Thread Christian Schulz
Hi, i understand my problem , because i overwrite my result's from previous loop's again and agian, really stupid :-] regards, christian Hi, i have 656 attributes ind INTERVALL_VAR 119 in GROUP and this morning i'm little confused why the inner loop hang if it arrive 656th column. My

Re: [R] for loop problem

2007-01-21 Thread Uwe Ligges
aat wrote: Hello R users, A beginners question which I could not find the answer to in earler posts. My thought process: Here z is a 119 x 15 data matrix Step 1: start at column one, bind every column with column 1 Step2: use the new matrix, test, in the fitCopula package Step3: store

Re: [R] for loop problem

2007-01-21 Thread Prof Brian Ripley
On Sun, 21 Jan 2007, Uwe Ligges wrote: aat wrote: Hello R users, A beginners question which I could not find the answer to in earler posts. My thought process: Here z is a 119 x 15 data matrix Step 1: start at column one, bind every column with column 1 Step2: use the new matrix, test,

[R] for loop problem

2007-01-20 Thread aat
Hello R users, A beginners question which I could not find the answer to in earler posts. My thought process: Here z is a 119 x 15 data matrix Step 1: start at column one, bind every column with column 1 Step2: use the new matrix, test, in the fitCopula package Step3: store each result in

Re: [R] for loop problem

2003-07-14 Thread Peter Dalgaard BSA
Tobias Verbeke [EMAIL PROTECTED] writes: Dear list, Here's a function that works fine when I assign one value to i. qx, ax and gr are vectors. ax.to.nax - function(qx, ax, gr=c(0,1,5,10)){ px - 1 - qx last.n - gr[length(gr)] - gr[length(gr) - 1] all.bounds - c(gr, gr[length(gr)] +

Re: [R] for loop problem

2003-07-14 Thread Tobias Verbeke
Sir Dalgaard, Thank you for your kind reply. In what way am I ill-treating R ? You're ill-treating the readers by not giving a full example of a call to the function... ax.to.nax.for(qx, ax) However: in the for loop, i will be one of 0,1,5,10 and n is the vector c(1,4,5,5) so

Re: [R] for loop problem

2003-03-05 Thread Michael Na Li
On Tue, 04 Mar 2003, Jeremy Z. Butler told this: I want to generate a sequence which goes 1 2 3 4 5 6 7 8 14 15 16 17 18 19 20 21 26 27 ... i.e. 8 consecutive numbers then 5 missed then the next 8 numbers etc. I was going to do this using the seq() function but couldn't figure out how

RE: [R] for loop problem

2003-03-03 Thread Henrik Bengtsson
] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Z Butler Sent: den 4 mars 2003 14:14 To: [EMAIL PROTECTED] Subject: [R] for loop problem Hi, I'm just coming to grips with for looping etc. and have a bit of a problem: I want to generate a sequence which goes 1 2 3 4 5 6 7 8 14 15 16 17 18 19

Re: [R] for loop problem

2003-03-03 Thread Douglas Bates
Jeremy Z Butler [EMAIL PROTECTED] writes: Hi, I'm just coming to grips with for looping etc. and have a bit of a problem: I want to generate a sequence which goes 1 2 3 4 5 6 7 8 14 15 16 17 18 19 20 21 26 27 ... i.e. 8 consecutive numbers then 5 missed then the next 8 numbers etc. I