reg_cor_near_one {semlbci}R Documentation

Dataset (Six Variables, One Correlation Close to One)

Description

Generated from a regression model six variables, x4~~x5 correlation close to one.

Usage

reg_cor_near_one

Format

A data frame with 100 rows and six variables:

x1

x1

x2

x2

x3

x3

x4

x4, with correlation with x5 nearly equal to 1

x5

x5, with correlation with x4 nearly equal to 1

y

y, the dependent variable

Details

This model is used for examples like this one:

out <- lm(y ~ x1 + x2 + x3 + x4 + x5, reg_cor_near_one)
summary(out)
cor(reg_cor_near_one[, c("x4", "x5")])

Examples


print(head(reg_cor_near_one), digits = 3)
nrow(reg_cor_near_one)



[Package semlbci version 0.11.2 Index]