Hello.
First post here, so please bear with we if I do not comply with standard practice in here
I am looking at how social class affects populist opinions, and how perceived class inequality interacts
My variables:
Y: Elitepop = Left-wing populist opinions (an index, 0-1)
X: klasse2 = My class variable (from 1-5)
Z: forskel = perceived class inequality (dummy, 0-1 - No - Yes)
Control-variables:
koen: Gender
alder: Age
My command: reg elitepop c.klasse2##i.forskel koen alder, r
Since both class ("klasse2") and perceived class inequality ("forskel") are categorical, I've run the command with " i. "
However, this presents me with an issue in regards to reporting the results in a table, since I'm getting an output with coefficients for each category (as opposed to when using i., then I'm only getting one)
Can I avoid reporting all of the coefficients/can I get only one interaction coefficient (and not one for each class)? I'm only interested in knowing and reporting if there's an interaction, and which way it affects the effect of class on populist opinions. But I don't assume it's okay to just use c. in front of my x-variable, class (even though this would give me only one interaction coefficient)
Thank you in advance! :-)
I hope I gave all the relevant information, otherwise please let me know
Kind regards
First post here, so please bear with we if I do not comply with standard practice in here

I am looking at how social class affects populist opinions, and how perceived class inequality interacts
My variables:
Y: Elitepop = Left-wing populist opinions (an index, 0-1)
X: klasse2 = My class variable (from 1-5)
Z: forskel = perceived class inequality (dummy, 0-1 - No - Yes)
Control-variables:
koen: Gender
alder: Age
My command: reg elitepop c.klasse2##i.forskel koen alder, r
Since both class ("klasse2") and perceived class inequality ("forskel") are categorical, I've run the command with " i. "
However, this presents me with an issue in regards to reporting the results in a table, since I'm getting an output with coefficients for each category (as opposed to when using i., then I'm only getting one)
Can I avoid reporting all of the coefficients/can I get only one interaction coefficient (and not one for each class)? I'm only interested in knowing and reporting if there's an interaction, and which way it affects the effect of class on populist opinions. But I don't assume it's okay to just use c. in front of my x-variable, class (even though this would give me only one interaction coefficient)
Thank you in advance! :-)
I hope I gave all the relevant information, otherwise please let me know
Kind regards
Comment