YXZ {PBImisc}R Documentation

Artificial dataset which shows the differences between tests type I and III (sequential vs. marginal)

Description

Artificial dataset, shows inconsistency for test type I and III

Usage

data(YXZ)

Format

data.frame with 100 obs. and 3 variables

X, Z

explanatory variables

Y

response variable

Details

See the example, results for staistical tests are inconsistet due to correlation between X and Z variables

Source

Artificial dataset, generated by PBI

Examples

attach(YXZ)
summary(lm(Y~X+Z))
anova(lm(Y~Z+X))
anova(lm(Y~X))
anova(lm(Y~Z))

[Package PBImisc version 1.0 Index]