Dear statalist community,
I currently have a small problem with performing graphs.
In the beginning of my analysis I just want to have some basic graphs before I start with the regressions.
I tried to do twoway scatter plots but they just don't show anything.
My dependent variable in and my variable that should be shown on the x-axis is risk preferences on a scale for 0-10 and my explanatory variables that should be shown on the y-axis are married /non-married, divorced/not-divorced, widow/not
For example, married is a dummy variable and risk preferences is categorical.
This is what I performed for ever variable and the scatter then always looks the following:

any ideas what I am doing wrong?
If you need more information let me know
ah and btw I haven't told stata that I'm using panel data, so I did not run the xtset command.
Best regards
Lisa
I currently have a small problem with performing graphs.
In the beginning of my analysis I just want to have some basic graphs before I start with the regressions.
I tried to do twoway scatter plots but they just don't show anything.
My dependent variable in and my variable that should be shown on the x-axis is risk preferences on a scale for 0-10 and my explanatory variables that should be shown on the y-axis are married /non-married, divorced/not-divorced, widow/not
For example, married is a dummy variable and risk preferences is categorical.
Code:
twoway (scatter married risk_preferences, sort)
any ideas what I am doing wrong?
If you need more information let me know
ah and btw I haven't told stata that I'm using panel data, so I did not run the xtset command.
Best regards
Lisa
Comment