Re: [R] Grouped regression

2012-07-08 Thread SKrishna
Hi, Thanks for the reply. > Sex[120:144]<-factor(TG) #Renaming some males to transgender, to > create 3 groups, male, female and transgender Sorry, that should have been Sex[120:144]<-factor('TG') The original line did not have the quotes. >I'm getting the sense that this is homework. You

Re: [R] Grouped regression

2012-07-09 Thread SKrishna
match one of the spam filters in place for the list (thereby necessitating moderation). Best, Suresh David Winsemius wrote > > On Jul 8, 2012, at 7:55 AM, SKrishna wrote: > >> >> Hi, Thanks for the reply. >> >>> Sex[120:144]<-factor(TG) #Renaming som

Re: [R] anova.lm and F-test

2012-07-09 Thread SKrishna
Dear Peter, Thank you very much for that excellent answer to a rather stupid question :) I did not notice that the RSS actually increased for the model with more parameters and so in this case the F-statistic is negative and therefore a p-value from the F-distribution is meaningless. But I guess y