Funny labels in lm

Whenever you feel like talking about something else, there's always the off-topic forum
Post Reply
User avatar
mcfanda@gmail.com
Posts: 457
Joined: Thu Mar 23, 2017 9:24 pm

Funny labels in lm

Post by mcfanda@gmail.com »

Hi
while I'm struggling with associating labels to lm() terms, I found out this cool thing (well, you know what I mean):

Code: Select all


afac<-replicate(100,sample(2,1))
afac<-factor(afac)
afac2<-rnorm(100,0,1)
y<-rnorm(100,0,1)
model<-lm(y~afac+afac2)
### Regression ####
summary(model)
### ANOVA ####
drop1(model,.~.,test="F")


Post Reply