Lab 6 question: accessing the dialog box for scatterplot

Lab 6 question: accessing the dialog box for scatterplot

by Christina Mangurian -
Number of replies: 1

I'm having trouble w/ Part 4 of Lab6 HW.  I ordered the twoway by lfitci then scatter, but am having trouble accessing the dialog box to do the fine tuning for Qs 27, 29, 30, and 31.  Could someone walk me through this? 

This is what I have so far (but again, I think this is all right--it's just putting the p-value in, removing gridlines, changing the line to black, and changing the legend):

twoway (lfitci bw gestage) (scatter bw gestage, mcolor(black))  ///
        ,  ytitle("Birth weight, grams") ///
          ytitle(, size(medium) margin(small)) ///
          xtitle(, size(medium) margin(medium))  ///
         xtitle("Gestational age, weeks")   ///
         graphregion(fcolor(white) lcolor(none))  ///
         name(Lab6_scatter, replace) ///
        saving("Lab6_scatter.gph", replace)

 

Thanks in advance,

Christina

In reply to Christina Mangurian

Re: Lab 6 question: accessing the dialog box for scatterplot

by Sofia Verstraete -

Christina,

To access the dialog box you have to enter all the commands through the dialog box.  Stata won't let you enter a written command and then access the dialog box.  In fact, after accepting a command placed in the dialog box (by pressing "Ok") you cannot re-access the Dialog Box, which is why we recommend using "Submit" until you are happy with your graph.

On the menu go to Graphics> Two-way graph (scatter, etc) and start your graph there.  Follow the instructions from there starting at number 22 on the assignment.  Each time you "Submit" your selections on the dialog box the commands will appear in your main Stata viewer for you to copy to your do-file.  

Let us know if you need more help!

Sofia