YXZ {PBImisc} | R Documentation |
Artificial dataset, shows inconsistency for test type I and III
data(YXZ)
data.frame with 100 obs. and 3 variables
X
, Z
explanatory variables
Y
response variable
See the example, results for staistical tests are inconsistet due to correlation between X and Z variables
Artificial dataset, generated by PBI
attach(YXZ)
summary(lm(Y~X+Z))
anova(lm(Y~Z+X))
anova(lm(Y~X))
anova(lm(Y~Z))