Re: [R] Insurance data in library(MASS)

2009-02-24 Thread Richardson, Patrick
Try ?relevel -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of choonhong ang Sent: Tuesday, February 24, 2009 2:33 PM To: r-help@r-project.org Subject: Re: [R] Insurance data in library(MASS) Hi, In the result shown, the District

Re: [R] Insurance data in library(MASS)

2009-02-24 Thread choonhong ang
Hi, In the result shown, the District 1 is used as the base category. How to change to make District 4 as a base category ? On Mon, Feb 23, 2009 at 11:05 AM, choonhong ang wrote: > I have used the insurance data from R library and I have 2 questions: > I use the following: > >library(MASS) > >d

Re: [R] Insurance data in library(MASS)

2009-02-23 Thread Prof Brian Ripley
You are asking about support software for a book, and the book contains the answers And it should be given due credit. On Mon, 23 Feb 2009, choonhong ang wrote: I have used the insurance data from R library and I have 2 questions: I use the following: library(MASS) data(Insurance) m1=gl

Re: [R] Insurance data in library(MASS)

2009-02-23 Thread Greg Snow
In the Insurance dataset both Age and Group are ordered factors so the default encoding for them is orthogonal polynomials (assuming that the user has not changed the default). In the output below the .L indicates that line is for the "Linear" piece of the encoding or the Linear contrast on the