Instructions to construct tables and charts
- 格式:doc
- 大小:117.50 KB
- 文档页数:6
Commands to count frequencyMethod I:1.In cell C1 type the name of the variable of interest. (rating of Harry Porter 7)2.In cell C2 type the first category for the variable, and in C3 the second category, and so on, to complete thelisting of categories. (Ha ven’t seen it, 1 star, …, 4 stars)3.In cell D1 type the label for cells containing the frequencies of each category. (Frequency)4.In cell E1 type the label for cells containing the percent of each category’s frequency (out of the total numberof values contained in the variable of interest). (Percent)5.Place the cursor on cell A1, then click Data (数据), Filter (筛选), Automatically Filter(自动筛选).6.Click the Down Arrow in cell A1 and choose the first category listed in the summary table. (Haven’t seenit)7.Count the number of cells with the value just chosen in Step 6.8.Click the Down Arrow in cell A1 and choose (All) (全部).9.Input the number counted in Step 7 to cell D2.10.Repeat Step 6 to 9 until complete counting the frequencies for all categories.11.Leave the cursor in cell A1, then click Data (数据), Filter (筛选), Automatically Filter(自动筛选). Thedown arrow in the cell then disappears.Method II:1.Precede steps from 1 to 4 in Method I.2.In cell D2 construct a function to calculate the frequency of the category in Row2. Click once cell D2, thenclick f x button on the toolbar.3.In the pull-down menu of Choose Categories(选择类别), select Statistical (统计). In the below box, selectthe function of COUNTIF, and then press OK.4.In the Range box, input the range of data, including all cells with values below the Variable.5.In the Criteria box, click C2 to input the condition to count the frequency for the category in cell C2. Thenpress OK.6.In cell D2 right click the mouse, select Copy (复制).7.In each cell below D2 that needs to calculate frequency, right click the mouse, select Paste (粘贴).Commands to calculate percent1.Type “=”, click cell D2, type “/”, type the summed-up value, and press Enter.2.Select cells from D2 to the last value in the Column D, then click Σ button on the toolbar. The sum of allfrequencies is now calculated and displayed in a cell at the end of the column.3.In cell E2 construct a function to calculate the percent of the category in Row 2. Type “=”, click cell D2, type“/”, type the summed-up value, and press Enter.4.In cell E2 click the right button of mouse, then in the menu select Format Cells (设置单元格格式).5.In the new dialogue box, select Digit (数字) option, click Percent (百分比), and determine the number ofdecimal digits (小数位数) to be zero or any other if necessary. Click OK.6.In cell E2 right click the mouse, select Copy (复制).7.In each cell below E2 that needs to calculate percent, right click the mouse, select Paste (粘贴).Commands to construct a bar chart1.Prepare a summary table including frequencies for each category, following all steps in Method I or MethodII for constructing a summary table.2.Highlight all cells containing names of categories and the corresponding cells containing the frequencies,click the button (Chart Wizard) (图表向导) on the toolbar.3.In the new dialogue box, choose Histogram (柱形图) or Bar Chart (条形图), and click Next (下一步).Note that histogram and bar chart both produce graphs where length of bars represents data.4.Select Column (列). Click Finish (完成).5.To improve the appearance of the chart, click inside the box containing the chart and click Chart (图表) onthe menu bar and Chart Options (图表选项).Commands to construct a pie chart1.Prepare a summary table including frequencies for each category, following all steps in Method I or MethodII for constructing a summary table.2.Highlight all cells containing names of categories and the corresponding cells containing the frequencies,click the button (Chart Wizard) (图表向导) on the toolbar.3.In the new dialogue box, choose Pie Chart (饼图), and click Next (下一步).4.Select Column (列). Click Finish (完成).5.To improve the appearance of the chart, click inside the box containing the chart and click Chart (图表) onthe menu bar and Chart Options (图表选项).Commands to construct a Pareto diagram1.Prepare a summary table including frequencies for each category, following all steps in Method I or MethodII for constructing a summary table.2.Highlight all cells containing value of frequency for categories, click the button (Sort data indescending order) (降序排序) on the toolbar.3.In the new dialogue box, select Extend the Highlighted Area (扩展选定区域), and click Sort (排序).4.In cell F1 type the label for cells containing cumulative percent of each percent corresponding to the adjacent“Percent” column. (cumulative percent)5.Calculate the cumulative percent for the first category. In cell F2 type“=”, click cell E2, and press Enter.6.In cell F3, type “=”, click cell E2, type “+”, click F2, and press Enter.8.In cell F3 right click the mouse, select Copy (复制).7.In each cell below F3 that needs to calculate cumulative percent, right click the mouse, select Paste (粘贴).8.Highlight all cells containing value of frequency, hold Ctrl, highlight all cells containing value ofcumulative percent, and click the Chart Wizard (图表向导) on the toolbar.9.In the new dialogue box, click Self-defined Type (自定义类型), choose Dual Axis Histogram (两轴线柱图), and click Next (下一步).10.Select Column (列). Click Finish (完成).11.To improve the appearance of the chart, click inside the box containing the chart and click Chart (图表) onthe menu bar and Chart Options (图表选项).Commands to sort data in an ordered array1.Highlight all cells containing values for the variable of interest.2.Click the button (Sort data in ascending order) (升序排序) on the toolbar.3.In the new dialogue box, select Extend the Highlighted Area (扩展选定区域), and click Sort (排序).Steps, commands and comments to produce frequency distributionUsing data for Length of Right Hand to show an example.1.Sort raw data in an ascending order.Precede all steps for sorting data in an ascending order.2.Find the range of data.In cell B1, type “Range”. In cell C1 type“=”, click the last cell containing data for the variable (A79), type“-”, click the first cell containing data for the variable (A2), and press Enter.3.Determine the number of classes (usually between 5 and 15).In cell B2 type Number of classes. In cell C2 type the number of classes that we wish to group data into. Alternatively, we can use Sturge’s formula to calculate the recommended number of classes. In cell C2 type“=1+3.3*log(n)”, where n is the number of number of values in the data, and press Enter. Keep in mind that the number of classes should be rounded to an integer.pute width of class interval.In cell B3 type “Width”. In cell C3, type “=”, click C1, type “/”, click C2, and press Enter. Keep in mind that the width of class interval should be rounded to an integer.5.Determine class boundaries.In cell B4 type “Limit”. In cell C4 type the upper limit of the first class. Such limit should be equal to the minimum value of data plus width of class interval (a rounded integer”, or a number close to the sum, if necessary. In cell B5 type the upper limit of the second class, and so on, to complete the listing of Limit. You must know clearly that each class contains values of data equal to or greater than the lower limit, up to but not including the upper limit.6.Click Tools (工具) on the menu bar, Data Analysis (数据分析), Histogram (直方图).7.In the new dialogue box, in the box right to Input Range(输入区域) type the range of data that is requiredto construct frequency distribution (e.g., A2:A79).8.In the box right to“Bins” (接受区域) type the range of limit (e.g., C4:C10).9.Click OK (确定). This will create a table in a new worksheet.10.To remove the More (其它) class, use the left button and click the cell containing More (其它) and the cellcontaining the corresponding frequency. Delete the two cells.Steps, commands and comments to produce frequency distribution1.Precede steps 1 to 8 for constructing a frequency distribution.2.Click Chart Output (图表输出) and OK (确定). This will create a table and a chart, in a new worksheet.3.To remove the gaps between rectangles, place the cursor over one of the rectangles and click the fight buttonof the mouse to produce a menu.4.Click (with the left button) Format Data Series (数据系列格式) to produce a new dialogue box.5.Click Options (选项), move the cursor to Gap Width (分类间距) and change the number from 150 to 0.click OK (确定).6.To remove the More (其它) class, use the left button and click the cell containing More (其它) and the cellcontaining the corresponding frequency. Delete the two cells.7.To improve the appearance of the histogram, click inside the box containing the chart and click Chart (图表)on the menu bar, and then Chart Options (图表选项).8.Note that the numbers along the horizontal axis represent the upper limits of each class although they appearto be placed in the centers.Steps, commands and comments to produce a polygonThis can be based on the tables from producing a frequency distribution1.Precede all steps for constructing a frequency distribution.2.In the new worksheet containing the frequency distribution table, in cell C1 type“P ercent”.3.In cell C2 calculate the percent of frequency in row 2, and C3, and so on to complete calculations of percentfor each frequency. This can be done by preceding relevant steps for constructing a bar chart or for a pie chart.4.Highlight all cells containing percent, click the Chart Wizard (图表向导) on the toolbar.5.In the new dialogue box, click Line (折线图), and click Next (下一步).6.Select Column (列). Click Finish (完成).7.To improve the appearance of the chart, click inside the box containing the chart and click Chart (图表) onthe menu bar and Chart Options (图表选项).Steps, commands and comments to produce an ogiveThis can be based on the tables from producing a frequency distribution1.Precede steps 1 to 3 for constructing a polygon.2.In cell D1 type“Cumulative P ercent”.3.Repeat relevant steps for constructing a Pareto diagram to calculate cumulative percent of each frequency.4.Highlight all cells containing cumulative percent, click the Chart Wizard (图表向导) on the toolbar.5.In the new dialogue box, click Line (折线图), and click Next (下一步).6.Select Column (列). Click Finish (完成).7.To improve the appearance of the chart, click inside the box containing the chart and click Chart (图表) onthe menu bar and Chart Options (图表选项).Alternatively, this can be done by:1.Precede steps 1 to 8 for constructing a frequency distribution.2.Click Cumulative Percent (累计百分比) and OK (确定). This will create a table in a new worksheet.3.Follow steps from 4 to 7 above to construct a cumulative percentage polygon, or an ogive.Steps, commands and comments to produce a contingency table (optional)1.Leave enough empty rows in the top of data sheet to display the names of variable and all categories undercorresponding variable.If data has already been imported, insert new empty rows. Place the cursor over any cell in row 1 and right click the mouse to produce a new menu. Click Row (整行) and OK (确定). Repeat this until enough new rows have been inserted.2.Make sure Column A contains data for the variable that you want to display in column in a contingency table,and Column B contains data for the variable displayed in row in the contingency table.If the data are not arranged in such order, exchange sequence of the two column of data. Highlight all data in the second column of data, including the name of variable. Over the highlighted area right click the mouse to produce a new menu. Click Cut (剪切). Place the cursor over the cell containing the name of the first variable and right click the mouse. Click Insert the Cut Cells (插入已剪切单元格).3.In cell A1 type the name of variable for data in Column A. (“Rating of Harry Porter”)4.In cell B1type the name of variable for data in Column B. (“Gender”)5.In cell C1 type “Frequencies”. Leave the below cell to calculate and display the joint frequencies.6.Produce a blank contingency table. In cell D2 and the below cells type all categories in Column A. In cell E1and the right cells type all categories in Column B. Type “Total” at the end of the Row 1 as well as at the end of the Column D.7.In cell A2 type the name of the first category displayed in the first column of the contingency table (D2). Incell B2 type the name of the first category displayed in the first row of the contingency table (E1).8.In cell C2 insert a function of DCOUNTA selected from the function type of Database.9.In the box right to Database, type the range of two data sets, including names of variables. (A7:B85)10.In the box right to Field, type the name of variable in Column B. (“Gender”)11.In the box right to Criteria, type the range of cells as the condition to count joint frequency. (A1:B2). ClickOK (确定).12.In cell E2 type the number which is displayed in cell C2.13.Replace cell A2 with the second category in the first column of the contingency table (D3). Repeat step 12,changing the names of categories down that column, to complete listing all joint frequencies in Column E. 14.In cell A2 type the name of the first category displayed in the first column of the contingency table (D2). Incell B2 type the name of the second category displayed in the first row of the contingency table (F1).15.In cell F2 type the number which is displayed in cell C2.16.Repeat Step 13 to complete listing all joint frequencies in Column F.17.If there are more categories in the first row of the contingency table, operate similarly to Steps 14 to 16.18.In cells below the cell displaying Total (in the first row), calculate the frequencies for corresponding categoryin each row. In cells right to the cell (in the first column), calculate frequencies for corresponding category in each column.Steps, commands and comments to construct a side-by-side bar chart1.Highlight all cells in the contingency table, excluding the row and the column for Total.2.Click the Chart Wizard (图表向导) on the toolbar.3.In the new dialogue box, click Bar Chart (条形图) or Histogram (柱形图), and click Next (下一步).4.Select Column (列). Click Finish (完成).5.To improve the appearance of the chart, click inside the box containing the chart and click Chart (图表) onthe menu bar and Chart Options (图表选项).Steps, commands and comments to construct a scatter plot1.Highlight all cells in the table.2.Click the Chart Wizard (图表向导) on the toolbar.3.In the new dialogue box, click XY Scatter (XY散点图) from chart type, click on the first Chart Sub-type(子图表类型) and click Next (下一步).4.Select Column (列). Click Finish (完成).5.To improve the appearance of the chart, click inside the box containing the chart and click Chart (图表) onthe menu bar and Chart Options (图表选项).Steps, commands and comments to construct a time series plot1.Highlight all cells below Y variable in the table.2.Click the Chart Wizard (图表向导) on the toolbar.3.In the new dialogue box, click Line (折线图) from chart type, click on the first Chart Sub-type (子图表类型) in the second row and click Next (下一步).4.Select Column (列).5.Click Series (系列). In Labels of Categorical Axis (分类(X)轴标志) box, type range of cells containingtime. Click Finish (完成).6.To improve the appearance of the chart, click inside the box containing the chart and click Chart (图表) onthe menu bar and Chart Options (图表选项).Insert a chart into a Word document1.Place the cursor over the chart and right click the mouse.2.Click Copy (复制).3.In a word document, leave the cursor at a particular place where you wish to insert the chart. Right click themouse and click (with left button) Paste (粘贴).4.Adjust the appearance the inserted figure.。