A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

# Questions tagged [interaction]

A situation where the effect of an explanatory variable may depend on the value of another explanatory variable.

1,730 questions
Filter by
Sorted by
Tagged with
10 views

### Can an independent, predictor variable be used as a multigroup moderator in SEM?

I am analyzing the below model using Structural Equation Modelling. I have PE (continuous, manifest variable) as an exogenous variable. I want to retain PE in the model and run a multigroup SEM on two ...
8 views

### p-values change after mean centering with interaction terms. How to test for significance?

I assumed the following interaction model: $$y = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \beta_3 x_3 + \beta_4 x_2 x_3$$ And then applied mean centering: y = \beta_0 + \beta_1(x_1 - \bar{x_1}) + \...
8 views

### Odds Ratio for Interaction Terms in GenLin in SPSS

I have a generalized linear model using SPSS to determine the relationship between certain variables (sex, race/ethnicity, geographical area, etc.) and whether or not they use a computer. Also, we ...
43 views

### Creating sex-specific quartiles as predictor in lmer()

I am using lmer() (lme4 package) in r to test whether a hormonal factor (x) predicts score on a mental health scale (y). I am using linear mixed models rather than a standard GLM because the outcome ...
30 views

### Interpret Interaction Effects in Negative Binomial Regression

I have two questions regarding the interpretation of interaction effects in a negative binomial regression model. The model uses the number of people arriving at a hotel per hour as the dependent ...
18 views

### Can RFs find a product interaction between two independent variables?

I'm doing the FastAI course on ML, and the main topic that is currently being discussed is random forests. Jeremy Howard explains how random forests, unlike something such as logistic regression, can ...
9 views

### What does it mean when there exists a treatment group by time effect?

In longitudinal analysis, mixed-models, gee, what does it mean when there's a group by time effect as opposed to only a time effect and treatment group effect? What does treatment group effect signify ...
45 views

### How to add Indivivual Specific Variables for unlabelled alternative (using interactions) using mlogit with R?

I’m using DCE with unlabelled alternatives, 9 choice set with 3 alternative each (2 option and Optout alternative), described with 4 attributes. I've started with a conditional logit (with only ...
26 views

### Continuous continuous interaction term in R

My problem is visualising a regression I have made, but I am unsure on how to visualise it. I have an interaction term both variables are continuous. What graphs can I use to accurately depict this ...
25 views

### Which effects and which interactions are significant?

I'm performing an experiment with five main effects resp. 6-7 since these main effects influences are studied on 20 sensors (which can be grouped into 3 ...
31 views

### Can I use the interaction between a dummy variable and the variable it was derived from?

I am trying to make a multiple linear regression model. I have a hypothesis that $x$ is a significant predictor of $y$ but only when $x > 0.5$ ($x$ ranges from -2 to + 2). Is it acceptable to ...
20 views

### Binary Non Linear Regression with Time Series and Group Interaction Effect

First post so I'll try to be as specific as possible. My design is as follows: 2 groups: Control and Treatment 5 min test of movement within an arena with a zone of interest Binary Dependent ...
8 views

### Logistic regression: McFadden does not change after interaction term is added. But Waldtest shows differecne in model fits

I have tested two models (one with interaction, the other without). The McFadden test show just small improvement in model fits (.432 to .439). When I run Waldtest between the model, it shows that ...
17 views

### How to consider interaction terms in the ridge / lasso / elastic net?

I would like to ask a question about how to consider interaction terms in my penalized regression? My primary goal is to build the model to predict. I think in the conventional GLM, we run the model ...
12 views

### How to generate synthetic high-collinearity data with interaction effects?

I want to create high-collinearity data (dependent variable) with interaction effects. This answer provides code snippet to generate collinear data, but I want to go one step further and add ...
17 views

### Mediated Moderation or Moderated Mediation?

let's say I have two groups (variable G) and another variable such as stress (variable M). The two groups differ within stress. Now I want to examine how the relationship between freetime (variable X) ...
26 views

### Multicollinearity - mean centering does not reduce the confidence interval of interaction terms?

I generated synthetic high-collinearity 10,000 datasets (each of sample size 1,000) using high-covariance matrix with multivariate normal distribution. I fitted 10,000 different linear models and ...
24 views

### Including Z in a logistic regression model with X, Y and XY

Quick question, hope somebody could help me! I have a logistic regression model with dichotomous variables X, Y and interaction term XY. However, there is a third dichotomous variable Z that is also ...
10 views

### How to report transformed and standarised data

I'm trying to analyse three variables with a moderation analysis. All three variables use different scales (IV scale: 1 - 5, DV scale: 1 - 6, moderator scale: 0 - 100). The independent and dependent ...
17 views

### How to interpret standardized coefficients for an interaction effect between continuous and categorical variables?

It is conventional, in some circles, to standardize all continuous variables before conducting OLS regression. It is argued that this actions makes it possible to rank the effects observed, and hence ...
52 views

### How to isolate two distinct effects of a unique independent variable in multiple regression analysis?

Salut! First of all thank you if you're reading this post and I wish you all the best for 2020! Edit 1: All variables are continuous variables (no dummy or categorical) Edit 2: An illustration of ...
33 views

...
30 views

### How can I check if are there confounding and interaction betwen variables in a regresion model?

Hi I am trying to know if are there confusion and interaction in a regression model, but I am not too sure how do it. The first step for is create the model of the following way. ...
71 views

### Multi-level / mixed-effect / hierarchical linear regression. Model and interpretation advice? [closed]

I want to run and then report a multi-level model on the ChickWeight data in R. I have done several analyses of which I have a few questions. I've been told the AIC is a good way to test a model's ...
10 views

### Mixed models: No significant interaction - post-hoc analysis?

I have a more or less general question about the logic of post-hoc-tests: I did a mixed linear model on the effect of a treatment on well-being. Subjects were randomly assigned to one of two treatment ...
41 views

### Graph and statistics multiple regression show different things

I’ve run a multiple regression to find out if visual memory declines differenty for the autism group than for the controlgroup. I did find a significant main effect of age, showing that with ...
38 views

### endogenous moderator in lavaan?

I am still learning about SEM, lavaan, and moderated mediation. My question is whether a moderator can be an endogenous variable - i.e. whether the variation in the moderator can be modelled as ...
37 views

### Small sample size: is multiple regression preferred over moderator analysis?

I would like to determine whether the relationship between variable X and Y depends on the value of a third variable M. It's a psychological topic and unfortunately I've got a sample size of 30 ...
44 views

### Interaction is not significant in ANOVA, but significant in Regression, which is nonsense

Variables that I have: randomization (categorical): control / low / high sesdummy (categorical): low / high fairness (continuous) I wanted to see if there was an interaction effect between two ...
18 views

### Finding out whether events are correlated

I manage software development. We have a lot microservices and have built a lot of features. I would like to see if any of the microservices are highly coupled - which I'm defining here as meaning ...
23 views

### Conclusion of my logistic regression with interaction terms

I ran a logistic regression, all assumptions checked and so on, and I have two models with four predictory variables predicting one dependent. In my first model I just check the variables themselves, ...
19 views

### Interaction effect and collinearity: important or not? Influence of precipitation on foraging behavior?

I am facing a pretty straightforward case. I wish to test whether precipitation, represented as interaction effect between two numerical variables (number of strong showers x highest rainfall recorded ...
22 views

### Is it problematic when very few samples are $\ne 0$ for the interaction term?

I am analyzing a data with 200 thousand observations and I am estimating $Y_{ist} = Group_{ist} + Treatment_{ist} + \beta Group_{ist} \times Treatment_{ist} +\epsilon$ where $\beta$ is the ...
16 views

### Mediation Analysis with Interaction of Mediators

I am not an expert in mediation analysis or structural equation modelling. I looked in the standard reference for mediation analysis (i.e., Hayes) and searched the forum and internet a bit and could ...
10 views

### hyp test: constant return to scale with Squared and interaction terms

I want to test if constant return to scale applies to my production function (modelA): log(y) = log(x1) + log(x2) + log(x1)^2 + log(x1)*log(x2) I have tried the following in r, but iam not sure if ...
37 views

### How can I make a scatterplot with two grouping variables (group and subgroup)? [closed]

I'd like to make a scatterplot with my dependent variable (scores on test A) on the y-axis, age (continuous) on the x-as and group (autism vs. control) as grouping variable, but also subgroup (people ...
14 views

### Logistic regression for factorial design: interaction and main effects of treatments

I have a factorial experimental design with 4 groups: (1) Controls, (2) Treatment A, (3) Treatment B, and (4) Both treatments A and B. A total of 100 patients were randomly allocated in a balanced ...
56 views

### How to figure out the direction of a Generalized Linear Model?

I'm trying to figure out the direction of my data from my GLM output analysis. For example, with linear regression, you can plot the x and y values on a scatter plot to determine the direction of the ...
27 views

### glm with two interactive factors

I've run a glm (gaussian family) with a*b as independent variables. At first, I run two separate models (like glm(y~a) and ...
30 views

### Combining mean differences in regressors and significant prediction and moderation in multiple regression

I am analyzing a survey about career choices with an eye toward demonstrating sex differences in: 1) the means for factors that might be related to career choice (e.g., differences by sex in ...
17 views

### Non significant interaction in a 2X2 ANOVA but significant t-test

I have a within-subject design and I analysed the data by using a 2X2 repeated-measures ANOVA. My dependent variable is continuous and my two independent variables are categorical. Assume that the two ...
20 views

### continous x categorial interaction with aov-command in R

I've really tried to google it, but so far I couldn't find any information that fully answers my questions, so I'm hoping to get some help here (I'm also happy about links to any resources dealing ...
21 views

### Two-Way ANOVA with significant interaction with replication, how to proceed?

Good morning everyone. I am performing an omnibus two-way anova test. In the set of factors that I want to test I included biological replication and technical replication. The function used for the ...
16 views

### How to see the effect of a continuous moderator on a DV w/a 12x2x2 within-between subs factor setup?

We cannot figure out the most appropriate analysis, given our data. We conducted a 12 (morality of the behavior) x 2 (character type) x 2 (character role) experiment. Morality and role were within ...
22 views

### Interpretation R results linear Model with Interactions

I´m trying to analyse the effects testosterone in combination with a specific pill type can have on reactiontimes.For example, if there is a difference in the reactiontimes between people who have low ...