1
$\begingroup$

When applying regression to a large data set with consisting of both numeric and categorical variables are there exploratory techniques in order to spot potential significant interactions between variables without having to systematically test each and every combination of variables?

$\endgroup$

1 Answer 1

2
$\begingroup$

There are several approaches to finding interactions, among others:

  1. Estimate a model using all interactions of given degree. Example in R:

    X <- data.frame(y=rnorm(100), x1=rnorm(100), x2=runif(100))
    glm(y~.^2, data=X)
    

    . includes all columns from X in model formula, ^2 includes all second degree interactions.

  2. Estimate a model which automatically finds interactions, eg. MARS (Multivariate Adaptive Regression Splines) from earth package in R.
$\endgroup$
2
  • $\begingroup$ Thank you. Approach 2 makes sense to me. However regarding approach 1, when including all interaction terms in a single model, then the significance of each term will be dependent on the presence of other interaction terms within the same model, thus each interaction doesn't undergo a "pure" test...right? $\endgroup$
    – pd441
    Commented Oct 4, 2017 at 8:01
  • $\begingroup$ Yes, you are right, yet it will allow you to identify possible interactions for further testing. $\endgroup$
    – maciek
    Commented Oct 4, 2017 at 8:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.