From veraf at stat.sc.edu  Tue Apr 15 22:33:50 2003
From: veraf at stat.sc.edu (veraf@stat.sc.edu)
Date: Tue Apr 15 21:34:08 2003
Subject: [Rd] Labeling in lm() (PR#2785)
Message-ID: <200304151933.h3FJXopD007746@pubhealth.ku.dk>

Full_Name: Francisco Vera
Version: 1.6.2
OS: Windows XP
Submission from: (NULL) (66.20.153.135)


When I run the following code:

m1<-lm(y~A*B)
m2<-lm(y~A/B)
anova(m1)
anova(m2)

I obtain the results I want from both, the cross classified and the nested
model, except for the labeling. The terms for m1 are A, B and A:B (good); the
terms for m2 are A and A:B (wrong). I would expect for terms in m2 to be A and
B%in%A. The same mistake happens if I use the formula "y~A+B%in%A" instead of
"y~A/B". The values for the term A:B in m2 are correct, they correspond to
B%in%A and are different from A:B of m1. The only problem is the labeling.


[Rd] Labeling in lm() (PR#2785)
veraf@stat.sc.edu