Re: [R] Problems with basic loop

2008-06-20 Thread Peter Dalgaard
Michael Pearmain wrote: > Thanks for the reply Peter, > > >> I did just see that i had put the first error message,(agreed rather an >> obvious error) in and not the second i received >> >> Warning message: >> In asin(sqrt(yF[i])) : NaNs produced >> Ah. Notwithstanding other remarks, that o

Re: [R] Problems with basic loop

2008-06-20 Thread Michael Pearmain
Thanks for the reply Peter, > I did just see that i had put the first error message,(agreed rather an > obvious error) in and not the second i received > > Warning message: > In asin(sqrt(yF[i])) : NaNs produced > > The reason i'm looking at this is advert exposure True and False. > > I'm inspecti

Re: [R] Problems with basic loop

2008-06-20 Thread Peter Dalgaard
Michael Pearmain wrote: > I'm having trouble creating a looping variable and i can't see wher ethe > problem arises from any hep gratfully appreciated > > First create a table > > x<-table(SURVEY$n_0,exposed) > >> x >> > exposed >False True > Under 16241 >

[R] Problems with basic loop

2008-06-20 Thread Michael Pearmain
I'm having trouble creating a looping variable and i can't see wher ethe problem arises from any hep gratfully appreciated First create a table x<-table(SURVEY$n_0,exposed) > x exposed False True Under 16241 16-19 689 20-24 190 37 25-34 5