Learn R Programming

rvif (version 3.0)

SLM2: Second simulated data for the simple linear regression model

Description

Second data used in example 4 of Salmerón, García and García (2024) (subsection 4.4) on the special case of the simple linear model.

Usage

data("SLM2")

Arguments

Format

A data frame with 50 observations on the following 3 variables:

y2

Dependent variable simulated as y = 3 + 4*Z + u where u is normally distributed with a mean of 0 and a variance of 2.

cte

Intercept.

Z

Simulated from a normal distribution with a mean of 10 and a variance of 0.1.

References

Salmerón, R., García, C.B. and García, J. (2025). A redefined Variance Inflation Factor: overcoming the limitations of the Variance Inflation Factor. Computational Economics, 65, 337-363, doi: https://doi.org/10.1007/s10614-024-10575-8.

Examples

Run this code
  head(SLM2, n=5)
  y = SLM2[,1]
  x = SLM2[,2:3]
  multicollinearity(y, x)

Run the code above in your browser using DataLab