I am trying to plot a scatter diagram based on different conditions but it does not work.
I have a variable "return" and created on the basis of another variable "market cap" two dummy variables categorizing the market cap as small and large such that I have two new binary variables "small_cap" and "large_cap".
Now I want to visualize the return for small_caps and the return of large_caps as dots in one graph with another variable on the x-axis.
I tried the following code but it said "invalid "return"
Code:
scatter return if small_cap==1 return if large_cap==1
Best regards,
Eva
0 Response to Visualizing on different conditions
Post a Comment