Hey everyone.
I'm having troubles with the outcome of a linear regression model, since I expected something completely different:
This ist how I coded the interaction:
g number_younger_siblings_female=number_younger_sibl ings*(sex-1)
The variable sex is coded 1 for males and 2 for females. (sex-1) makes it 0 for males and 1 for females.
I expected the outcome to be a larger negative number for females, but what I found is a lower negative effect for females, what is unlikely according to the literature. It would make sense to have an negative coefficient of the interaction So I think there must be a mistake and I just can't find it. I would be super grateful if someone would find the mistake!
This is my output: Array
Related Posts with Undiscovered mistake in regression with interaction term
inference randomizationHi everyone, I hope you are all doing good. I have to do an inference randomization but I don't real…
Boxplots in STATAHello, I am trying to create a boxplot of categorical variables in stata. I have about 6 to 7 variab…
Sorry, double post.o …
Replace values for all rows of a study ID, based on a value in a single row.Hello, I am very new to stata and trying to teach myself how to use it. I wanted to determine if the…
esttab with the error " in range not allowed" r(101);The code is as following, Why did this error occur, thanks esttab m s, nogap compress replace /// mt…
Subscribe to:
Post Comments (Atom)
0 Response to Undiscovered mistake in regression with interaction term
Post a Comment