search for: lm12

Displaying 2 results from an estimated 2 matches for "lm12".

Did you mean: lm1
2007 Aug 06
1
test the significances of two regression lines
R-help, I'm trying to test the significance of two regression lines , i.e. the significance of the slopes from two samples originated from the same population. Is it correct if I fit a liner model for each sample and then test the slope signicance with 'anova'. Something like this: lm1 <- lm(Y~ a1 + b1*X) # sample 1 lm2 <- lm(Y~ a2 + b2*X) # sample 2 anova(lm1, lm2)
2002 Sep 14
0
p.s. regarding stripchart missing-data report (PR#2019)
...anova(lm8) #lm9 <- lm(minrisk.numbers.sm ~ truste.score+mss.m.score+worry.numbers.sm+stai.score) #anova(lm9) lm10 <- lm(minrisk.numbers.sm ~ truste.score+mss.m.score+worry.numbers.sm+sex+educ+age) anova(lm10) lm11 <- lm(minrisk.numbers.sm ~ truste.score+worry.numbers.sm) anova(lm11) #lm12 <- lm(nprob.m[,1,5,9] ~ worry.numbers.sm+pc.had+stai.score) #anova(lm12) #lm 13-15 used above # tells you which Ss said both #apply((minrisk.m==1 & exagg.m==1)+0,1,sum,na.rm=T) toohigh.sm <- apply(nprob.m>rightans.m,1,mean,na.rm=T) toohigh.numbers.sm <- apply(nprob.m[,5:12]>r...