Hello everyone,
I try to analyze PISA 2018 data and, more specifically, I would like to conduct a stepwise regression with an interaction in the second model.
I am able to create a null model without the interaction by use of two discrete, independent variables: escs_cat (which contains several categories of the escs value) and spktestlang (Child speaks mostly the language of assessment at home as a dummy).
I use this command:
pisareg math escs_cat spktestlang
But when I include an interaction between the country and one of the two independent variables, I get an error:
pisareg math spktestlang escs_cat##ib1.cnt
Error: # invalid name
I tried to test the coding by use of one plausible value and it worked.
However, I know that this is not sufficient as a result.
Can somebody please help me?
Thank you very much in advance
Best,
Hannah
Related Posts with PISATOOLS package - How can I conduct a linear regression with one interaction?
Variables omitted due to multicollinearity- is it about the type of variable?Helle everyone, I'm having some difficulties with a regression. When using xtreg with fixed effects…
Panel RegressionHello At the moment I'm trying to do regressions with panel data. If I make a OLS regression with t…
How to add reference lines (yline) for different ID?Hi all in Statalist, I need help with having two reference lines in the same plot. In our study, w…
chi2 not allowed with mrtab and weightHi, I try to do a chi2 test of significance. When I do not add weight, stata allows it, but when I t…
Insufficient data when trying looped regressions and storing betasHi, I am trying to run a loop of regressions by an index called funddateid and then storing the bet…
Subscribe to:
Post Comments (Atom)
0 Response to PISATOOLS package - How can I conduct a linear regression with one interaction?
Post a Comment