Graphpad Prism 2.

Slides:



Advertisements
Similar presentations
Overview of Techniques Case 1 Independent Variable is Groups, or Conditions Dependent Variable is continuous ( ) One sample: Z-test or t-test Two samples:
Advertisements

One-Way and Factorial ANOVA SPSS Lab #3. One-Way ANOVA Two ways to run a one-way ANOVA 1.Analyze  Compare Means  One-Way ANOVA Use if you have multiple.
Using SPSS. Handy buttons Switch between values & value labels Info about variables (& ‘Go To’)
1 Business 90: Business Statistics Professor David Mease Sec 03, T R 7:30-8:45AM BBC 204 Lecture 5 = More of Chapter “Presenting Data in Tables and Charts”
Chapter 10 Regression. Defining Regression Simple linear regression features one independent variable and one dependent variable, as in correlation the.
By Wendiann Sethi Spring  The second stages of using SPSS is data analysis. We will review descriptive statistics and then move onto other methods.
More on ANOVA. Overview ANOVA as Regression Comparison Methods.
By Hrishikesh Gadre Session II Department of Mechanical Engineering Louisiana State University Engineering Equation Solver Tutorials.
Gordon Stringer, UCCS1 Regression Analysis Gordon Stringer.
Repeated Measures ANOVA Used when the research design contains one factor on which participants are measured more than twice (dependent, or within- groups.
Chapter 9 Correlational Research Designs
FEBRUARY, 2013 BY: ABDUL-RAUF A TRAINING WORKSHOP ON STATISTICAL AND PRESENTATIONAL SYSTEM SOFTWARE (SPSS) 18.0 WINDOWS.
LEARNING PROGRAMME Hypothesis testing Intermediate Training in Quantitative Analysis Bangkok November 2007.
Microsoft Excel Part 2 Kin 260 Adapted from Daniel Frankl, Ph.D. Revised by Jackie Kiwata 10/07.
Class Meeting #11 Data Analysis. Types of Statistics Descriptive Statistics used to describe things, frequently groups of people.  Central Tendency 
Chapter 3: Introductory Linear Regression
Then click the box for Normal probability plot. In the box labeled Standardized Residual Plots, first click the checkbox for Histogram, Multiple Linear.
Chapter 13 CHI-SQUARE AND NONPARAMETRIC PROCEDURES.
Using Google Sheets To help with data. Sheets is a spreadsheet program that can interface with Docs, or Slides A spreadsheet program has cells (little.
Introduction to Engineering Microsoft Excel 1 Agenda Tables, Charts, & Graphs.
28. Multiple regression The Practice of Statistics in the Life Sciences Second Edition.
Copyright © 2005 by Nelson, a division of Thomson Canada Limited 14-0 EXCEL CHAPTER 14 PHILIP BEDIENT.
Using SPSS Note: The use of another statistical package such as Minitab is similar to using SPSS.
Chapter 4 Minitab Recipe Cards. Correlation coefficients Enter the data from Example 4.1 in columns C1 and C2 of the worksheet.
Continuous Outcome, Dependent Variable (Y-Axis) Child’s Height
Topics, Summer 2008 Day 1. Introduction Day 2. Samples and populations Day 3. Evaluating relationships Scatterplots and correlation Day 4. Regression and.
Chapter 9 Two-way between-groups ANOVA Psyc301- Spring 2013 SPSS Session TA: Ezgi Aytürk.
Analyzing Data. Learning Objectives You will learn to: – Import from excel – Add, move, recode, label, and compute variables – Perform descriptive analyses.
Chapter 5: Introductory Linear Regression. INTRODUCTION TO LINEAR REGRESSION Regression – is a statistical procedure for establishing the relationship.
1 G Lect 10M Contrasting coefficients: a review ANOVA and Regression software Interactions of categorical predictors Type I, II, and III sums of.
Analysis of Variance (ANOVA) Scott Harris October 2009.
Regression. Why Regression? Everything we’ve done in this class has been regression: When you have categorical IVs and continuous DVs, the ANOVA framework.
Welcome to Week 05 College Statistics
*Bring Money for Yearbook!
*Bring Money for Yearbook!
Multiple Regression Equations
Dr. Siti Nor Binti Yaacob
Factorial Experiments
Mixed Costs Chapter 2: Managerial Accounting and Cost Concepts. In this chapter we explain how managers need to rely on different cost classifications.
R. E. Wyllys Copyright 2003 by R. E. Wyllys Last revised 2003 Jan 15
SIMPLE LINEAR REGRESSION MODEL
Multiple Regression.
Linear Regression Prof. Andy Field.
Applied Statistical Analysis
Regression.
Lesson ANOVA - D Two-Way ANOVA.
Sunee Raksakietisak Srinakharinwirot University
Chapter 9 Correlational Research Designs
Interactions & Simple Effects finding the differences
AP Exam Review Chapters 1-10
Soc 3306a: ANOVA and Regression Models
CPSC 531: System Modeling and Simulation
Data Presentation Carey Williamson Department of Computer Science
Soc 3306a Lecture 11: Multivariate 4
Simple Linear Regression
15.1 The Role of Statistics in the Research Process
Carey Williamson Department of Computer Science University of Calgary
HIMS 650 Homework set 5 Putting it all together
Correlation and Covariance
Association between 2 variables
Learning outcomes By the end of this session you should know about:
Exercise 1 Use Transform  Compute variable to calculate weight lost by each person Calculate the overall mean weight lost Calculate the means and standard.
Exercise 1: Gestational age and birthweight
Chapter 14 Multiple Regression
Graphpad Prism 1 Introduction.
MASH R workshop 2:.
MASH R session 3.
MASH R workshop 5.
Ordinary Least Square estimator using STATA
Exercise 1: Gestational age and birthweight
Presentation transcript:

Graphpad Prism 2

Session 2 2-way ANOVA Mixed ANOVA Regression (simple and multiple) Pearson/Spearman correlation coefficient.

2 Way ANOVA City: 1st categorical variable Job type: 2nd categorical variable Salary: Continuous Measurement (DV: Dependent Variable) Data set in: https://raw.githubusercontent.com/ywchiu/rcookbook/master/chapter5/engineer.csv Click on Save As. Download the file in a folder on your computer.

2 Way ANOVA: Entering the data

We need to enter 20 replicate values per cross-category.

The rows will be the type of Jobs (3 jobs) The rows will be the type of Jobs (3 jobs). The columns will be the cities (3 cities).

Select the measurement of the cross-category “Data Scientist” x “Seattle”.

You can copy paste as “transpose” in Prism.

City: 1st categorical variable Job type: 2nd categorical variable

PROCEDURE: 2 Way ANOVA

Multiple Comparison: You need to choose what you would like to compare. For example here, if you want to do a pairwise comparison between Cities, you can do so by comparing column means. If you want a comparison between Job types, you can do so by Comparing the row means. You would have to re-run the 2-way ANOVA if you want both.

Results of the 2-Way ANOVA.

Graph illustrating the 2-Way ANOVA: very important!

More colourful graph… By Clicking on “Change”, symbol “histograms”, you can change the design. Here. We change the colour of San Francisco to Orange.

More colourful graph… For Seattle, I can put the points and line in Green.

More colourful graph… Modifying the titles is easy.

Interaction Effect: When the lines are not parallel An interaction effect occurs if basically your salary would evolve differently across jobs when you are in a city compared to another. We have an interaction effect here because the decrease from Data Scientist to Software Engineer is much bigger in Seattle than it is for San Francisco or New-York.

Mixed ANOVA: Continuous variable/measurement: Diet group. One categorical variable: Fixed Factor(at least 2 groups)= Between Factor. At least 2 different times: Within-Factor Basically the same as the 2-Way ANOVA, but imagine instead of types of job you have 3 different times: 2009,2014 and 2019. You would have to study the effect across time, between groups and the interaction effect. Download the Diet Data set (csv) from MASH website: https://www.sheffield.ac.uk/mash/statistics/datasets

Mixed ANOVA Dependent Variable: Weight in kg. 2 different times: Time is the within-factor (Before, After 6 weeks). Diet: Between-subjects factor (3 different groups: Diet 1, Diet 2 and Diet 3). Here we want to explore the evolution of weight in kg (continuous measurement) across 2 different times: Before, After 6 weeks. We also want to see if participants evolve differently if they EITHER use Diet 1 OR Diet 2 OR Diet 3 (Between-subject factor).

Entering the data With the methods from last session, Can you sort the diet group in the order? Diet 1s FIRST, then Diet 2s, Diet 3s. There are 24 measurements at each Time and for Diet 1.

24 measurements at each time for each diet.

Between factor: Columns. Within factor: Rows. Factor Time is in the Rows. Factor Group is in the Columns.

Copy-Paste the initial weight from Diet group 1 only from the CSV file.

Paste Transpose! So that the measurements are in the row and not in the first column.

Paste the data from the second Diet Group Oops! There are more than 24 measurements in group 2. There are 27 measurements. We need to increase the number of subcolumns for Group 2 in the Graphpad data set.

Increase the number of subcolumns You need to add 3 subcolumns to the right of B24.

Copy-pasting the data It will also increase the number of columns in Group 1 and Group 3 and bring it to 27. For Group 3 there are 27 measurements to do. So there is nothing else to do apart from copying pasting the data.

Copy-pasting the rest of the data. Try to finish copy-pasting the rest of the data.

PROCEDURE: Mixed ANOVA

Mixed ANOVA: Multiple Comparisons. There are 2 times but 3 groups. If you want you can do the pairwise multiple comparisons between the groups only:

Results of the Mixed ANOVA. Column Factor is the effect of the Between- Subject factor.

Illustration of the Mixed ANOVA X-Axis: TIME (always): Time 0 and After 6 weeks. Y-Axis: Measurement = Weight (kg). Legend: Categorical Variable : Diet.

Illustration of the Mixed ANOVA.

Simple Linear Regression A simple linear regression is used when you want to predict a continuous Y by a continuous variable X. Y is called the dependent variable. X is called the independent variable or predictor.

Simple Linear Regression

Simple Linear Regression Download the crime data set first. Copy-paste “Male” - Number of males – in the X column. Copy-paste “CrimeRate” in the Y column.

Simple Linear Regression

Simple Linear Regression

Simple Linear Regression

Simple Linear Regression Not significant! The number of males does not predict the Crime Rate.

Simple Linear Regression: Plot of the line of best fit.

Simple Linear Regression: R square: Close to 1 means the model fits well the data. Close to 0 means the model does not fit the data.

Simple Linear Regression Try to do a simple linear regression to predict the birthweight (dependent variable Y) by the gestational age in the birthweight data set.

Correlation Coefficient

Correlation Coefficient You need to choose between Parametric (Pearson) and Non-Parametric coefficient. How do you do that?

Correlation Coefficient