Hi guys
Variables explained:
splitvoter: 0= not split vote between two elections / 1= split vote between two elections
i.tidspunkt_beslutning: 0= I made my decition for whom to vote for in the month leading up to the electon 2 = I made my decition for whom to vote for later then one month before the election.
I understand my logistic regression model:
olog splitvoter i.tidspunkt_beslutning, baselevel
I also want to make marginsplot for the interpretation of the model:
margins tidspunkt_beslutning
marginsplot
Output: See attached
My question:
Why do i get both a blue and a red line? I would,like to make a graf with only one line with the prediction for split vote for both i.tidspunkt_beslutning=0 and 1...
Can anybody help us out here? :-)
Best regards
Mikkel and Lukas
Related Posts with Marginsplot for logistic regression?
A quick question about weird question marks in a string variableHello, I am using Stata 15.1. I have a string variable - student-teacher ratio (see data below). for…
Running a correlation for a subset of observationsHi all, Please consider the following example: Code: clear . input str4 id byte str3 shock byte s…
type mismatch error when using "replace" functionHi everyone, I am using STATA version 14.0 and am hoping to replace missing observations using: "re…
Replacing melogit by meqrlogit ?????I'm using melogit command for a multilevel mixed effect regression. When I run the following command…
Using loop for regression and saving results as a new variableHappy new year to Satatlist! I'm stuck with an old problem (using loop for regression). The variab…
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot for logistic regression?
Post a Comment