Statistical SoftwareStatistical Software
A Quick Introduction to Minitab Statistical Software
This introduction to Minitab is intended to provide you with enough information to get you started using the basic functionality of Minitab. Of course, you will learn more about Minitab and its capabilities as you proceed through the course you are taking.
Obtaining a Copy of Minitab
The Minitab software is available through a number of vendors as well as at the Minitab Website. You can get a license for 6 or 12 months.
Minitab can also be accessed through Penn State's WebApps service although there are limitations to how it may be used in the web-based environment. Students are STRONGLY advised to have access to a local copy installed. Please contact your instructor to see if using Minitab remotely will present problems for what you need to learn.
Copying and Pasting Data into a Minitab Worksheet
All of the data that you analyze in this course will be posted on the course web site. You will just have to copy and paste the data into a worksheet. Let's try it out on the idealwt.txt data set. Once the data are in your browser's window, the easiest way of copying the data is to Select all and then right-click and Copy. To paste the data into the Minitab worksheet, put your cursor in the first (unnumbered) row of the first column, and then click on Edit > Paste cells (or click on the standard clipboard icon used to denote pasting).
Your worksheet should look like this:
Note that the first (unnumbered) row is reserved for variable names. This is one thing about which you will have to be careful. If you accidentally place your cursor instead in the row numbered 1, Minitab will then treat the data as if they are text.
Columns with text as data can be added, but notice the slight differences in the window.
Note that Minitab has added a "-T" to the column name C3 to denote that the content of the column is text. Another indication that the content of the column is treated as text is that the textual content is left-justified whereas numbers are always right-justified. Minitab cannot summarize data, such as calculating means and standard deviations, when they are treated as text. If you accidentally make this mistake, just open a new worksheet (Select File > New... > Minitab Worksheet > OK) and paste the data properly.
The Minitab Help and How-To documentation provides step by step instructions on using Minitab to analyze data. The individual course notes will also provide details for each specific use of Minitab within that course.
Copying Minitab Output and Graphs into Word
To copy output appearing in the Session window, select the desired output using your mouse. To copy a graph window, make the graph window active by clicking anywhere in it, and the select Edit > Copy Graph.
To paste either output or a graph, select Edit > Paste (or use the standard clipboard icon used to denote pasting).
WebApps users should select the Send Graph to Microsoft Word option and a Word Document with this graph in it will be created and can be saved in your PASS space.
Saving Your Work
While you can save your work in bits and pieces — the graphs separately from the worksheet —more often than not, it is best to save your entire Minitab "project." A Minitab project includes all of the work created in one session, including multiple worksheets, the Session window, and multiple graph windows. Basically, if you save your work as a Minitab project, you can resume your work right where you left off.
To save your work as a Minitab project, select File > Save Project As..., and provide an appropriate filename in the dialog box. Minitab projects are given a ".MPJ" extension. For the purpose of this course, you may consider creating one project for each lesson, and thereby naming the projects lesson1.MPJ, lesson2.MPJ, and so on.
WebApps users work will be saved in the user's PASS space. It can be download to the user's local computer from there.
Printing Your Work
Of course, you can print your Minitab work as well. To do so, activate the window that you want to print by clicking your mouse anywhere on the window. Then, select File > Print Worksheet or File > Print Session Window or File > Print Graph depending on what it is that you want to print.
There are various ways that you can get Minitab help.
- You can look for help in the Minitab Help on-line manual also listed in the pull-down menu.
- You can use the various sets of Minitab instructions provided to you throughout the course. You will probably find links to these from the Homework Problems and Lab Activities in each lesson.
- Finally, you can post a question to a discussion in Canvas. Other students or your instructor can provide ideas and feedback.
Support From Minitab
Minitab offers several resources that are helpful for you. Minitab 19 Support - Getting Started is a concise guide designed to quickly get you familiar with using Minitab Statistical Software.
In addition to Minitab 19 - Getting Started, the following tools are available:
A complete Help file is incorporated in Minitab, which provides you with instructions, examples with interpretations, overviews and detailed explanations, troubleshooting tips, formulas, references, and a glossary. Open Help by choosing Help > Help or by clicking on the Help button on every dialog box in the software.
The StatGuide provides statistical guidance after you run a procedure in Minitab. Open the StatGuide by right-clicking on your output in the Session window, then choosing StatGuide.
Step-by-step tutorials help new users learn how to use Minitab. You can open these by choosing Help > Tutorials while using Minitab.
Last, but not least, remember that Minitab provides a support team staffed by professionals with expertise in the software, statistics, quality improvement, and computer systems. Visit the Minitab support web site or call +1-814-231-2682 to speak with Minitab's technical support specialists.
Minitab ExpressMinitab Express
Minitab Express is a statistical software application that was written specfically for introductory STAT courses. It is required software for STAT 200 online. It would not be appropriate for use with graduate level statistics courses.
A Quick Introduction to Minitab Express Statistical Software
This introduction to Minitab Express is intended to provide you with enough information to get you started using the basic functionality of Minitab Express. Of course, you will learn more about Minitab Express and its capabilities as you proceed through the course you are taking.
Obtaining a Copy of Minitab Express
The Minitab Express software is available through a number of vendors as well as at the Minitab Express Website. You can get a license for 6 or 12 months. Minitab Express is available for both the Mac and PC computing environments. Check the Department of Statistics Statistical Software web page for the latest information.
Getting Started with Minitab Express
Here are a couple of videos from Minitab that will familiarize you with the basic components of the application and how they are used in analysis or homework situation.
On a Mac:
On a PC:
Use the 'Help' icons!
As you are using Minitab Express a very helpful feature are the different 'just-in time' access points to Help. For instance, if you have opened a dialog box for a procedure and are not sure which options to choose, select the Help icon in the lower left.
Or, if there is output in the Output window that you don't understand, 'right-click' on the output and select the Help option.
Both of these options will open up windows with information that will help you understand the step that you are involved in.
Support for Minitab Express
For more information and support from Minitab visit: Minitab Express Support
What is R?
According to their site The R - Project for Statistical Computing:
"R is a language and environment for statistical computing and graphics."
"R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, clustering, ...) and graphical techniques, and is highly extensible."
"One of R's strengths is the ease with which well-designed publication-quality plots can be produced, including mathematical symbols and formulae where needed."
Obtaining a copy of the R applications
Download a copy of the most recent version of this application from their site: The R - Project for Statistical Computing
The website will require you to choose a 'CRAN Mirror'. The idea is to find the location geographically closest to you.
Launching R Programs
In R you can enter each line of code at the prompt in a step-by-step approach. You may also save R programs as simple text files to open in a separate window so that you can enter multiple lines of code at once and save your commands.
Here is an example data set you may save on your computer:
Here is an example program:
#Read data file into R as a vector example1 = scan("/Users/Shared/WD/Rdirectory/example1.dat") #Change pathname to wherever you saved example1.dat #Print data > example1 #Calculate the sample mean > mean(example1)
The # symbol indicates a programmer's comment. This text is not read by the R application. This program can either be copied and pasted into the R command line, line by line or as an entire program. You may also source this program from where it is saved on your computer as shown below.
It is often useful to set a working directory so that file names without a pathname will refer to files in that directory on your system. The command
getwd() will print your working directory to your screen. The command
setwd("/pathname") sets the R working directory.
- On a Mac, your pathname is shown at the bottom of your Finder window,
(/Users/Username/Documents/... for example).
- In Windows, the pathname is
One nice feature of the step-by-step command lines in R is that you may scroll through previous commands using the Up and Down arrow keys. Here are a couple of other handy commands that you can use in R:
### to read the commands from a source file directly and to output it in the R console instead of doing it line by line or copying the source file, in the command line envoke: > source("intro.R", echo=TRUE) #### to read the commands from a source file directly and to save the output named "example1.txt" as a text file > source("intro_file.R", echo=TRUE) #### Within the intro_file.R program the following commands redirect all subsequent R output to a file 'example1.txt' in addition to showing it in the R console. sink("example1.txt", append=FALSE, split=TRUE) sink() #### Restores normal R output behavior.
Here are the data files and programs to practice the above commands:
Depending on the course, datasets are either presented within the context of the lesson or within a datasets folder. Common file extensions for data files include .dat, .csv, and .txt. You must download the data from your course website. Canvas provides instructions on how to save a file for Windows users or Mac users. A Save dialog box will be displayed and allow you to save the data file to the location you choose on your computer.
There are a number of ways to read data into your R session. Two popular commands used in the examples presented here are
Install a Development Environment
The development environment is the application that you will use to open, edit, and execute R programs. If you already have a favorite development environment, you can see if it’s compatible with R (many of them are). If you don’t, we recommend one called RStudio.
- You need to have R installed first (see above)
- Download RStudio from the RStudio Website.
- Select the installer link that corresponds to your operating system (e.g. Windows, Mac OSX).
If you need help understanding a command or its syntax type either
?command , or
help(command) and R will display the help available on this topic. For instance, here is the help page for read.table from the command
Note: Certain functions in R may NOT run on all platfroms (e.g., Windows, MAC, Linux, etc..) the same way. For example, you may get an error with the sink() function on your PC depending how the read/write permissions are set up. It should not be a problem using it on Linux or a MAC, or if you run your R programs in a Terminal. In the Windows version of R, you can delete or comment-out the sink() function, and save your output by clicking on File/Save to file. You can also explore other options/functions such as file() , capture.output() , etc... You can also copy and paste your output from the R console window into a seperate file.
The Department of Statistics offers two 1 credit online courses, STAT 484: Topics in R: Statistical Language and STAT 485 - Intermediate Topics in R Statistical Language. This would be a good step towards building a solid foundation in using R. In addition, you may also find the following references handy:
- The R Project Homepage
- R Tutorial - web site at Clarkson University Department of Mathematics
- R Seek helps you find the R function you require
- DataCamp offers a free Introduction to R course and many additional courses with subscription.
- Lynda.psu.edu includes two courses involving R, Up and Running with R and R Statistics Essential Training
What Is SAS?
According to their site, SAS,
"SAS is the leader in business intelligence and predictive analytics software."
This application is used directly or referred to in many of the online STAT courses at Penn State.
Obtaining A Copy Of SAS
See the Statistical Software page for information regarding obtaining a copy. Please note that the SAS Student License and Media expires annually in June.
SAS can also be accessed through Penn State's WebApps service although there are limitations to how it may be used in the web-based environment. Students are STRONGLY advised to have access to a local copy of SAS. Please contact your instructor to see if using SAS remotely will present problems for what you need to learn.
Launching SAS Programs in Our STAT Courses...
For efficiency purposes, you may sometimes find a 'Launch SAS' button to download the relevant SAS program and open it automatically using the SAS application installed on your local computer. Or, you might be simply be presented with a link to the SAS program file.
Configuring your browser so that downloads open your SAS application automatically
The process of installing SAS on your local computer involves specifying and registering with your Windows operating system all of the file types that SAS will use within the SAS application. As a result, for example, Windows will place SAS specific icons where SAS files that have the '.sas' file extension are listed.
The browser that you are using to display the lesson pages should also be able to distinguish these file types as well. The first time that you click on a link and begins downloading a file type that your computer or browser does not recognize, a dialog box will appear that will ask you whether you want to Open the file with a specific application, Save the file to a location on your computer, or cancel the download. Be sure to select the option for opening all files that have the file extension '.sas' with your SAS application. This involves finding and selecting the SAS program through this dialog box. Once this configuration is set, any time you click on a link that is a SAS file having a '.sas' extension, it will automatically launch SAS (if it isn't open already) and then open the program within the Program Editor window of your SAS application.
If you have you missed doing this the first time around you can still let your system know the preferred application you would like for a specific file type at any time. If the program code shows up in a separate window, use the File > Save Page As option and save the file to a location on your computer. Now, locate the newly saved file and right-click on it so that a dialog box similar to this appears:
The key selection here is the Open With option. If SAS does not appear on the list, then use the Choose Program... option. You should get a dialog box that looks like this:
Be sure to check the box that we have circled in red - "Always use the selected program to open this kind of file."
You can test this using the Launch button at the bottom of this page.
Not to worry! If the configuration has not been specified, your browser will display the text of SAS program in a new window. All you need to do is copy and paste the text of this SAS program file into your SAS Program Editor window.
Configuring your computer to do this automatically provides convenience, but you always should have access to the text of the SAS program itself.
Datasets are presented within the context of the lesson, usually found within the narrative of an example as regular links. The links are the text or data files where the data is stored. Data files typically include the file extension .txt and will open in a new window when clicked.
If you want to download and save this file to a specific location on your computer, right-click the link and select the Save Link As option (see right). A Save dialog box will be displayed and allow you to save the text file to the location you choose on your computer. Try doing it with this data set: dogs.txt.
Free SAS eLearning Modules!
Penn State University has access to free eLearning. This free eLearning is associated with your EAS (Education Analytical Suite), Enterprise Miner and JMP licenses. Each of these components, allows you access to different eLearning courses. These courses may be accessed by faculty, staff and students associated with Penn State University using a psu.edu email address AND who have purchased a current license for SAS or JMP from Software at Penn State.
What you are entitled to:
- SAS(R) Enterprise Guide(R) 1: Querying and Reporting (EG 4.3)
- SAS(R) Macro Language 1: Essentials
- SAS(R) Enterprise Guide(R): ANOVA, Regression, and Logistic Regression (4.3 and 5.1)
- SAS(R) Programming 3: Advanced Techniques and Efficiencies
- SAS(R) Enterprise Guide(R) 1: Querying and Reporting (EG 5.1)
- Statistics 1: Introduction to ANOVA, Regression, and Logistic Regression
- SAS(R) SQL 1: Essentials
- SAS(R) Programming 1: Essentials
- SAS(R) Programming 2: Data Manipulation Techniques
- SAS(R) Enterprise Guide(R): ANOVA, Regression, and Logistic Regression
- Introduction to Statistical Concepts
- SAS(R) Programming 1: Essentials
- Predictive Modeling Using Logistic Regression
- SAS(R) Programming Introduction: Basic Concepts
- Statistics 1: Introduction to ANOVA, Regression, and Logistic Regression
- SAS(R) Enterprise Guide(R) 1: Querying and Reporting (EG 4.2)
- SAS(R) Enterprise Guide(R) 2: Advanced Tasks and Querying (EG 5.1)
- Querying, Reporting, and Analyzing Data Using SAS(R) Enterprise Guide(R)
Enterprise Miner eLearning
- Rapid Predictive Modeling for Business Analysts (EM 7.1)
- Rapid Predictive Modeling for Business Analysts (EM 6.2)
- Applied Analytics Using SAS(R) Enterprise Miner(TM)
- JMP(R) Software: Data Exploration - Academic Version (JMP 9)
- JMP(R) Software: Data Exploration - Academic Version (V11)
- JMP(R) Software: ANOVA and Regression (JMP 11)
- JMP(R) Software: ANOVA and Regression (JMP 10)
- JMP(R) Software: Data Exploration - Academic Version (V10)
If you do not currently have a license for SAS or JMP, you will need to purchase it online via Software at Penn State. Upon order processing and installation of your product, your activation codes to the free eLearning opportunities are:
[email John Haubrick for these codes if you are a student in the Department of Statistics]
To activate your e-Learning once you have purchased and installed your SAS/JMP license from Software at Penn State:
Go to SAS Login page and log in to your profile. If you do not currently have a profile, please create one using Create Profile button.
Once you've logged in to your My Training page, locate the To Activate a New Product box on the right side of the screen.
- Enter your activation code and click Submit.
- Review and accept the license agreement.
- You should now see the training in your list of active courses and the date on which your access expires.
- Click on the course title to start your learning.
To Access your e-Learning Once It Has Been Activated
Once your e-Learning has been activated, visit SAS Login page or select My Training from any page on the SAS training Web site and log in to your profile to access your training.
What is SPSS?
According to the SPSS
"The IBM SPSS® software platform offers advanced statistical analysis, a vast library of machine-learning algorithms, text analysis, open-source extensibility, integration with big data and seamless deployment into applications. Its ease of use, flexibility and scalability make IBM SPSS accessible to users with all skill levels and outfits projects of all sizes and complexity to help you and your organization to find new opportunities, improve efficiency and minimize risk."
Obtaining a copy of the SPSS applications
See the Statistical Software page for information regarding obtaining a copy of SPSS. Please note that the SPSS Student License and Media expires annually in August.
WebApps is a service provided by Penn State that allows students to access software remotely via the Web. This service is great if you need to use a software application and don't have access to your personal copy on your computer. You can use these applications through the web on your computer, tablet, or smartphone!
How Do I Access These Applications?
Accessing these applications is easy! Simply open a web browser and go to the WebApps web site.
Once you are at the WebApps site:
- Click on the application you would like to use.
- Authenticate using your Penn State Access Account userid and password.
- The application will open in your browser window.
NOTE: This is NOT the same as using an application installed on your local computer!
For many reasons it is always better to have access to your own copy of SAS, SPSS or Minitab on your local computer. Students committed to Statistical Consulting will want to install SAS and/or Minitab locally whenever possible. For students in classes where SAS or Minitab is used only infrequently this may be a viable alternative. Check with your course instructor to be certain.
For more information on using PASS visit the PSU IT Knowledge Base PASS article.
How is Using WebApps Different Than Having a Local Copy?
WebApps Does NOT Connect to Your Desktop! - only PASS space and WebFiles
WebApps does not 'see' your desktop but it will connect with your PASS space, so you MUST be familiar with uploading and managing files within your PASS space to open program files to use this version of the application successfully!
NOTE: The icon to access the clipboard and to upload and download files from PASS (shown right) has been updated can now be dragged to any part of the screen!
You Can NOT Copy and Paste Directly
You can't copy and past directly to or from the application being used in your web browser to a Word document you have open locally, or from your local computer to the application. You MUST use alternative methods to copy output, log notes, graphs and tables into other documents or paste any data or commands into these applications. Take steps to learn how to use these alternative methods! Look for the icon (show right) that provides access to these methods.
The follow video will step you through how to upload data to the Minitab WebApp using the 'toolbox' icon.
Video: Uploading Data to the PSU Minitab WebApp
Because you are accessing these applications remotely through your web browser, it does not make a difference which operating system you use. For instance, you can access Minitab or SAS using a Mac computer.
Please report all problems or bugs to ITServiceDesk.
A friendly piece of advice: do not leave homework or project assignments to the last minute as this does not assure access!!