pdixon.stat.iastate.edu · web view2) instead of file / save as, use edit / copy to copy the file...

7
Stat 401: Creativity, numeric and graphical summaries of data Read the creativity.csv file into JMP. How to do this is described in the JMPstart document. Numeric summaries of data: From the data window, click Analyze / Distribution. That brings up a dialog box that looks like: Drag the variable to be analyzed (score in our case) to the Y columns box, then click OK. If you want two separate sets of analyses, e.g., one for each treatment, drag treatment to the By box. You get three panels for each group of data: a low-resolution vertical histogram and box plot a list of quantiles, including the median. and a box of summary statistics. The names and values are: Mean: average of the values Std Dev: sample standard deviation of the values Std Err Mean: standard error of the mean Upper/Lower 95% Mean: 95% confidence interval for the mean (discussed in 2 weeks or so) N: sample size You will see red triangles various places in the results. Those triangles hide menus that allow you to request other statistics or suppress parts of the default results. We’ll talk about the ones we need for this course.

Upload: hoangque

Post on 12-May-2019

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: pdixon.stat.iastate.edu · Web view2) Instead of File / Save as, use Edit / Copy to copy the file to the clipboard, then paste it into your Word document. If the Graph window is the

Stat 401: Creativity, numeric and graphical summaries of data

Read the creativity.csv file into JMP. How to do this is described in the JMPstart document.

Numeric summaries of data:

From the data window, click Analyze / Distribution. That brings up a dialog box that looks like:

Drag the variable to be analyzed (score in our case) to the Y columns box, then click OK.If you want two separate sets of analyses, e.g., one for each treatment, drag treatment to the By box.

You get three panels for each group of data:a low-resolution vertical histogram and box plota list of quantiles, including the median. and a box of summary statistics. The names and values are:

Mean: average of the valuesStd Dev: sample standard deviation of the valuesStd Err Mean: standard error of the meanUpper/Lower 95% Mean: 95% confidence interval for the mean (discussed in 2 weeks or so)N: sample size

You will see red triangles various places in the results. Those triangles hide menus that allow you to request other statistics or suppress parts of the default results. We’ll talk about the ones we need for this course.

For example, the default output from Analyze/Distribution has the median in one box of results and the mean in another. If you want to include the median in the Summary Statistics box, click the red triangle by Summary Statistics, click Customize Summary Statistics, then check the box by Median and click ok. The median is added to the box of summary statistics. This is the same number as the median in the Quantiles box.

Page 2: pdixon.stat.iastate.edu · Web view2) Instead of File / Save as, use Edit / Copy to copy the file to the clipboard, then paste it into your Word document. If the Graph window is the

Dot plots:

There are various ways to create plots in JMP. You are welcome to use what works for you. A vertical, low resolution histogram is produced by Analyze/Distribution. I prefer and will demonstrate Graph Builder.

To get a dot plot of all the observations:click on the data window to make it activeGraph / Graph Builder from the main menuFind the name of the variable to plot in the variables box (left of Graph Builder window)

we want to plot scoredrag that variable to the y box (left side in the middle of the Graph Builder window) to get:

Click done to produce the final version of the plot in a new window.The result is a vertical dot plot of all observations.

Notice that JMP automatically jitters (separates horizontally) multiple observations with the same score.

To make a horizontal dot plot, put score into the X box (bottom of the window).

To draw side-by-side dot plots, start with the vertical dot plot of all values.Drag Treatment into either the X box (in JMP 14 Pro) or the Group X box (JMP 13 or 14).These look slightly different - choose which you prefer.

Page 3: pdixon.stat.iastate.edu · Web view2) Instead of File / Save as, use Edit / Copy to copy the file to the clipboard, then paste it into your Word document. If the Graph window is the

Histograms:

To get a histogram of all the observations:click on the data window to make it activeGraph / Graph Builder from the main menuFind the name of the variable to plot in the variables box (left of Graph Builder window)

we want to plot scoredrag that variable to the X box (bottom of the middle of the Graph Builder window)We want the X box to get a horizontal histogram.

The default is to start with a dot plot. We get a histogram by changing the graph type (shown by the icons at the top middle) will be dots.

Click the histogram box (10’th from left, highlighted below) to get the histogramNote: JMP Pro 13 and JMP Pro 14 use a different default number of bins, so the plots look different.

To get a sense of the logic of Graph Builder: click Start Overdrag score to the y box (left hand side of the middle)then click histogramyou get a sideways histogram

The icon 7 from the left is a bar chart, which shows the mean, not a histogram

To get stacked histograms for each group, start over and make the vertical histogram, thenDrag treatment to the Group Y box (right hand side of the middle).

To get side-by-side histograms, undo the stack (undo button) or start over. Drag treatment to the Group X box (on top of the histogram)

When you like the plot, click Done (top left of the Builder window)The result is a window with the plot

Page 4: pdixon.stat.iastate.edu · Web view2) Instead of File / Save as, use Edit / Copy to copy the file to the clipboard, then paste it into your Word document. If the Graph window is the

Box Plots:

Start Graph Builder. Since box plots are usually vertical (so values go up-down):drag score to the Y box.click the box plot icon (highlighted below)

and you get a box plot of all 47 observations

To show side-by-side box plots for the two treatments:drag treatment to the Group X box(JMP 14 Pro: Or drag treatment to the X box. Does work in 13, but labels are less informative)(And you be able to predict what happens if you drag treatment to the Group Y box)

Including a Graph Builder plot in a Word (or other) document:

I know three ways to do this:1) There is a menu bar hidden at the top of the graph window. You need to click the thin light blue bar at the top of the window to see it. Then click File / Save as, change the type to your favorite graph format, then save the figure. You can then Include / Picture into a Word document.2) Instead of File / Save as, use Edit / Copy to copy the file to the clipboard, then paste it into your Word document. If the Graph window is the active window, the usual keyboard shortcut for copy, Ctrl-C, will copy the graph to the clipboard.3) We’ll talk later about using the Windows Journal. If you store your results in a Journal, you can easily cut and paste figures or numbers from the Journal them into a Word or other document.