- Minitab Cookbook
- Isaac Newton
- 454字
- 2021-07-16 12:29:20
Calculator – basic functions
The e-calculator tool is analogous to formulas in Excel. In Minitab, we will run calculations on the columns one at a time. Using the weather data from the Oxford station, we will create a new column for the hours of sunlight in a month divided bythe amount of rainfall (in millimeters) for that month.

Getting ready
We will be using data from Oxford weather station; it can be obtained from http://www.metoffice.gov.uk/climate/uk/stationdata/. Select Oxford weather station data and copy the data into Minitab. Only copy the data and not the column headers. Then, rename the columns as Year
, Month
, T Max
, T Min
, Airfrost(days)
, Rain(mm)
, and Sun(Hrs)
.
Note
Inspect the data that we copy to ensure that the columns have the right data type. The column header C1-T
will indicate text, C1-D
will indicate data, and C1
without the hyphen is a numeric column.
Also, note that a few of the values in the data will be recorded as missing; this is where text values are supplied next to the number. A cleaned worksheet is provided in the Oxford weather (cleaned).mtw
file.
How to do it…
The following instructions will create a new column for the hours of sunlight to amount of rainfall in a month ratio:
- Go to the Calc menu and click on Calculator.
- In the dialog box, enter a name for the new column into the Store result in Variable section. We will name it as
'Sun(Hrs)/Rain(mm)'
. - Select the section labeled Expression, and then double-click on
Sun (Hours)
to move it across, enter/
, and then move theRain(mm)
column over. - Tick the box labeled Assign as formula and click on OK.
How it works…
The results of this function are generated in the selected column. The checkbox Assign as a formula will create a formula in the worksheet that will keep updating it. By default, this is not selected to avoid problems with circular or self-referencing formulas. When a formula is stored in a column, a green cross is placed at the top of the column to indicate the presence of a formula. The green cross indicates that this is up-to-date, while a red cross would indicate a problem in updating the formula.

There's more…
The calculator in Minitab has a plethora of functions available. We can choose from the function list on the right in the calculator screen. These include several statistical, mathematical, and text functions. They can be filtered with the drop-down list at the top. The help function for the calculator includes a list of functions and how to use them.
See also
- The Calculator – using an if statement recipe
- The Cleaning up a text column with the calculator recipe
- Splunk:Enterprise Operational Intelligence Delivered
- Business Intelligence with MicroStrategy Cookbook
- Metabase Up and Running
- 大數(shù)據(jù)搜索與挖掘及可視化管理方案 :Elastic Stack 5:Elasticsearch、Logstash、Kibana、X-Pack、Beats (第3版)
- Microsoft System Center Data Protection Manager 2012 SP1
- Tableau:Creating Interactive Data Visualizations
- 企業(yè)并購(gòu)審查中的相關(guān)市場(chǎng)界定:理論與案例
- Learn Power Query
- Big Data Analytics with R and Hadoop
- 計(jì)量經(jīng)濟(jì)學(xué)
- 看穿一切數(shù)字的統(tǒng)計(jì)學(xué)
- 人口預(yù)測(cè)模型研究及應(yīng)用
- Oracle Enterprise Manager 12c Administration Cookbook
- 規(guī)范內(nèi)部審計(jì)的28個(gè)技巧
- 政府采購(gòu)評(píng)審專(zhuān)家工作指南