[R] Grouped regression
madzientist at gmail.com
Mon Jul 9 10:21:47 CEST 2012
Thanks for the tip about naming the levels first with levels before
However, your answer does not solve the original question that I requested
help on. I will post a simplified version as a separate query, partly
because the subject line on the present one seems to match one of the spam
filters in place for the list (thereby necessitating moderation).
David Winsemius wrote
> On Jul 8, 2012, at 7:55 AM, SKrishna wrote:
>> 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
>> The original line did not have the quotes.
> I showed you how to fix that in the reply which you have not copied.
> Is this further evidence that you have not read the Posting Guide?
>>> I'm getting the sense that this is homework. You offer no information
>>> about you business or academic affiliations and appear not to have
>>> read the Posting Guide. Also setting up regressions is covered in the
>>> "Introduction to R" which you are requested to have reviewed before
>>> asking questions on Rhelp. Section 11 would be particularly relevant
>> No, it is not homework, I just used the cats dataset to produce a
>> example, as the Posting Guide suggests. I did not get the
>> information I was
>> looking for (how to create a subset regression where the slope and/or
>> intercept for some factors were constrained to be the same) from the
>> "Introduction to R" which I did look at (along with searching the
>> of R-help and doing a general Google search and going through the
>> first 100
>> or so results and looking at Julian Faraway's book on Regression
>> Analysis as
>> well as some material from John Fox...
> The term "subset regression" is not one I recognize but it sounded
> from your description that you wanted what you would get with:
> > out<-lm(Bwt~Sex+Hwt)
> > out
> lm(formula = Bwt ~ Sex + Hwt)
> (Intercept) SexM SexTG Hwt
> 1.4716 0.2144 0.6854 0.0965
>> View this message in context:
>> Sent from the R help mailing list archive at Nabble.com.
> It is unfortunate that you continue (along with so many users of
> Nabble) to fail to include context.
>> R-help@ mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
> R-help@ mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://r.789695.n4.nabble.com/Grouped-regression-tp4635761p4635827.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help