Learn R Programming

PBImisc (version 1.0)

YXZ: 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)

Arguments

Format

data.frame with 100 obs. and 3 variables
X, Z
explanatory variables
Y
response variable

Source

Artificial dataset, generated by PBI

Details

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

Examples

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

Run the code above in your browser using DataLab