Creating a new project and importing data in Prism

From BITS wiki
Jump to: navigation, search
Go to parent GraphPad Prism statistical analyses

Exercise 1: Importing example data

Data in Prism is organized in a hierarchy. At the top of the hierarchy there are projects, which contain one or several data tables.
So at the start of your analysis you have to create a new project. Let's call it Training.

So remember that in order to give a project a name, you have to save the project. As long as you do not save the project it has a default name Project 1.

Exercise 2A: Entering your own data

Before you can enter your data you have to create a new table to hold these data. So in the Training project create a new XY table, called Exercise2.
Enter values for:

  • X: 12 24 7 21 18 5 14
  • Y1: 5 3 4 4 5 4 5
  • Y2: 5 5 2 5 18 1 1

Y2 is not a replicate of Y1, it contains measurements for another group of individuals.

So notice that you can precisely specify the details of your data set (number of replicates, raw data or not…)

Exercise 2B: Importing your own data in an XY table

Import the Galileo data set. It's a comma separated value file and it corresponds to an XY table in Prism. Csv files are plain text representations of tables. They consist of lines of text. Each line consists of a series of values, one value for each column of the table. All values are separated by a comma.
This file contains data recorded by Galileo in 1609 during his investigations of the trajectory of a falling body:

  • init.h: initial height of the ball
  • h.d: horizontal distance traveled

So remember that when you import a text file (.txt or .csv) you have to create a new data table first to hold the data and you have to specify the role of the commas.

Exercise 2C: Importing your own data in another table type

Import the cfb data set. The data set is a csv file containing a survey of people’s finances. For details on importing data from csv files see Exercise 2B.

First open the file in a text editor so that you know:

  • the separator that was used
  • the type of data table

You do see commas in the file.

So remember that European Windows computers will generate csv files using a semicolon as column separator and a comma as decimal separator.

Exercise 3: Automatically generating values of an XY table

When the data values you want to use are defined by a mathematical function, it is possible to create them automatically in Prism using this mathematical function.
For instance create a new XY table, called Exercise3:

  • X: automatically create X-values, start at 0 increment with 1 and stop at 22
  • Y: automatically create Y-values, start at 5 increment with 1