Hi all,
I have two variables, HAL which has a mean = 1.51, SD =0.41. The other variable is PAL (mean =16.08, sd= 3.8). They are both continuous.
I have run a correlation and obtained a Pearson's r = 0.17.
I would also like to present two lines; one that is for males and one that shows the line of best fit for females.
I am trying to re-create this exact type of chart, but I have no idea how they would have done it... (grey = female, black = male)

I have a scatterplot with overlaid pearson's r line which I generated with the command graph
graph twoway (lfitci hal pal) (scatter hal pal)
But my graphs don't look nearly like what I'd like to see... it looks like this:

Does anybody have any clue as to how to make it look more like the first graph (in particular what the code would be to create nice black boxes as seen in the first table, rather than just this scattered mess).
Does it have anything to do with geometric means?
Thanks for any and all perspective!!
Al
I have two variables, HAL which has a mean = 1.51, SD =0.41. The other variable is PAL (mean =16.08, sd= 3.8). They are both continuous.
I have run a correlation and obtained a Pearson's r = 0.17.
I would also like to present two lines; one that is for males and one that shows the line of best fit for females.
I am trying to re-create this exact type of chart, but I have no idea how they would have done it... (grey = female, black = male)
I have a scatterplot with overlaid pearson's r line which I generated with the command graph
graph twoway (lfitci hal pal) (scatter hal pal)
But my graphs don't look nearly like what I'd like to see... it looks like this:
Does anybody have any clue as to how to make it look more like the first graph (in particular what the code would be to create nice black boxes as seen in the first table, rather than just this scattered mess).
Does it have anything to do with geometric means?
Thanks for any and all perspective!!
Al
Comment