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?
Interpreting coefficients in ologit regressionsDear everyone, I am a bit confused in interpreting the coefficients in an ologit regression when bo…
Using powerlog command to calculate power for case-control studyI am looking at a blood biomarker (continuous)'s ability to predict gestational diabetes (binary out…
IV 2SLS when dependent variable in 1st stage differs from endogenous variable in 2nd stageDear All, I am trying to implement on Stata 14.0 the same model adopted in Remolona, Scatigna and W…
Fixed Effects Model with Time Invariant Independent VariablesI am working with a panel data set in Stata 16.1 that has 14,690 observations and 19 variables. I am…
Heat maps according to datesDear friends, I am interested in build the attached graph. I was exploring in stata with several com…
Subscribe to:
Post Comments (Atom)
0 Response to PISATOOLS package - How can I conduct a linear regression with one interaction?
Post a Comment