Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double-demeaned interaction estimator with only two waves #31

Open
jogrue opened this issue Jul 10, 2020 · 0 comments
Open

Double-demeaned interaction estimator with only two waves #31

jogrue opened this issue Jul 10, 2020 · 0 comments

Comments

@jogrue
Copy link

jogrue commented Jul 10, 2020

Hi Jacob!

First of all, thank you for your great work on the panelr package.

I was just running some models as robustness checks. In one of these models, I included an interaction term but only had two waves of data available.

I received this error (I think from lme4): Some predictor variables are on very different scales: consider rescaling. Also the interaction term's coefficient was far off (like a quadrillion times larger than the main effects).

At first, I was looking at my data because I was working with mean-centred variables. But the error was not connected to that. However, since the Giesselmann & Schmidt-Catran paper mentions that the "double-demean" approach only works with T>2 in the abstract, I switched to the conventional "demean". This worked. Also, the interactions (with the default setting) worked in multi-wave panels.

I have now had a short look at the approach and if I am not mistaken, with only two waves of data no within-subject variation remains in the computed interaction term. So differences in my data might only have been there due to floating point arithmetics (i.e., very [!] small differences or as the error message said, indeed a very different scale). I don't know if my explanation is correct because I did not look into the double-demean approach in detail. But I guess, what I saw was due to this approach being applied to only two waves?

Thus, I would suggest to output a meaningful warning in such cases, mention this fact for "interaction.style" in the documentation, or even switch the default in cases of only two waves of data.

Best regards,
Johann

@jogrue jogrue changed the title Double-demeaned interaction estimator Double-demeaned interaction estimator with only two waves Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant