Docsity

Intermedio2 Spss, Apuntes de Psicología

Toggle sidebar
bg1
1
Intermediate SPSS (2) Hypothesis Testing and Inferential Statistics
Tutorial Goal: Continuation of Intermediate SPSS (1). Building and testing hypotheses using inferential
statistics in SPSS. This workshop covers parametric and nonparametric data, concentrating on ANOVAs, linear
regression, and logistic regression. Participants learn how to understand, analyze and report results.
Ok, let‟s review somewhat from our last workshop.
For statistics, there are four kinds of levels of measurement for the variable. All your analyses extend from
what kind of level your variable is. They are NOIR.
(N)ominal
(O)rdinal
(I)nterval
(R)atio
Let‟s talk about each one.
Nominal means that the number simply represents a category of objects. There is no measured different among
the objects or people. Some examples are giving states numbers (N.Y. 1, Connecticut 2, R.I. 3), assigning a
number for gender (male 1, female 2), or designating college major (History 1, Business 2, Sociology 3). You
are just assigning a number to something.
Ordinal means the larger number for the object is truly larger in some sort of amount. This typically means
rank. Some examples are 1st, 2nd, and 3rd places in a contest, or preferences for different movies. However,
there is no exactly measured difference among the objects. We don‟t know definitively how much larger or
better 1st is compared to 2nd. We just know 1st is somehow larger than 2nd.
Interval means, like Ordinal, that there is a rank for the objects or people, but there is also a measurement for
the ranking. Some examples are degrees Celsius or Fahrenheit. We know that the different between 98 and 99
degrees is the difference of the amount of mercury in a thermometer. Also, the difference between 42 and 43
degrees is the same amount between 98 and 99. However, there is no true zero, which stands for a complete
lack of the object being measured. 0 degree does not mean there is no mercury, for example.
Ratio means, like Interval, that there is a measurement for the ranking, but there is also a true zero. A true zero
means that there is lack of the quality being measured. Some examples are income, where the difference
between $10,000 and $11,000 is known and zero means complete lack of income.
These levels are very important and we will be discussing them more as we go on. Nominal and Ordinal are
called Nonparametric Data, and Interval and Ratio are called Parametric Data. The statistical analyses that
you can use are dependent on what level your data are. Specifically, if you can make a logical mean using your
data, then you can use parametric data.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e

Vista previa parcial del texto

¡Descarga Intermedio2 Spss y más Apuntes en PDF de Psicología solo en Docsity!

Intermediate SPSS (2) Hypothesis Testing and Inferential Statistics

Tutorial Goal: Continuation of Intermediate SPSS (1). Building and testing hypotheses using inferential statistics in SPSS. This workshop covers parametric and nonparametric data, concentrating on ANOVAs, linear regression, and logistic regression. Participants learn how to understand, analyze and report results. Ok, let‟s review somewhat from our last workshop.

For statistics, there are four kinds of levels of measurement for the variable. All your analyses extend from what kind of level your variable is. They are NOIR.

(N)ominal (O)rdinal (I)nterval (R)atio

Let‟s talk about each one.

Nominal means that the number simply represents a category of objects. There is no measured different among the objects or people. Some examples are giving states numbers (N.Y. 1, Connecticut 2, R.I. 3), assigning a number for gender (male 1, female 2), or designating college major (History 1, Business 2, Sociology 3). You are just assigning a number to something.

Ordinal means the larger number for the object is truly larger in some sort of amount. This typically means rank. Some examples are 1st, 2nd, and 3rd^ places in a contest, or preferences for different movies. However, there is no exactly measured difference among the objects. We don‟t know definitively how much larger or better 1st^ is compared to 2nd. We just know 1st^ is somehow larger than 2nd.

Interval means, like Ordinal, that there is a rank for the objects or people, but there is also a measurement for the ranking. Some examples are degrees Celsius or Fahrenheit. We know that the different between 98 and 99 degrees is the difference of the amount of mercury in a thermometer. Also, the difference between 42 and 43 degrees is the same amount between 98 and 99. However, there is no true zero, which stands for a complete lack of the object being measured. 0 degree does not mean there is no mercury, for example.

Ratio means, like Interval, that there is a measurement for the ranking, but there is also a true zero. A true zero means that there is lack of the quality being measured. Some examples are income, where the difference between $10,000 and $11,000 is known and zero means complete lack of income.

These levels are very important and we will be discussing them more as we go on. Nominal and Ordinal are called Nonparametric Data , and Interval and Ratio are called Parametric Data. The statistical analyses that you can use are dependent on what level your data are. Specifically, if you can make a logical mean using your data, then you can use parametric data.

There are some assumptions about data that you should be aware of. These also affect which test you choose.

Nonparametric Parametric Nominal/Ordinal Data Random sampling

Interval/Ratio Data Random sampling Normal Distribution Equal variances of the scores in populations that the samples come from.

Since the parametric data have more assumptions, the parametric tests are considered more powerful when the assumptions are met. Powerful means that these tests are better at picking up differences in variables in the population. Also they are more robust to the violations of the assumptions. So, if the assumptions are not completely met, you can still get accurate results. The only assumption that‟s nonnegotiable is the level of measurement.

When you choose a statistical analysis, you need to do two things, make a hypothesis and decide on significance. We are now going to talk about each one before we go on to the test.

  1. Making hypotheses is an essential part of every test. These hypotheses always deal with how the numbers of your sample relate to the numbers of the population. First, start with a null hypothesis and then an alternative hypothesis.

N ull Hypothesis (HO) states that the numbers of your sample do not differ significantly from the numbers of the population. For example, you walk into any old restaurant and do an IQ test on 30 customers. The HO says that the mean of their IQs should not differ significantly from the mean IQ of the population.

Alternative Hypothesis (HA) states that the numbers of your sample differ significantly from the numbers of the population. For example, we heard that the restaurant has intelligence boosting spices in the food, so our HA is that the sample of 30 people from the restaurant has a mean IQ of 130, which is much higher than the population‟s IQ.

P is significance. So, if you see a result reported p<.05 , it means that the likelihood that the result is due to chance is less than .05. You, when doing research, have .05 likelihood of chance that you can tolerate. It is conventional that significance is set at .05, but it can even be lower at .01 or even lower depending on how daring you want to be. One tailed or two tailed is where you put this likelihood of chance on your distribution curve. The likelihood of chance is also called alpha.

  1. Significance shows us the likelihood that a particular result is due to chance. Remember back to our normal distribution and IQs. What are the chances that you randomly go to a restaurant and get a group of people to do an IQ test and the mean is 130? Pretty slim. As you can see in the graph to the right, about 97% of people have IQs below 130. That‟s the concept behind significance. We are seeing what the likelihood is of getting a certain result.
  1. Significance: You need to report the level of significance that your result reached.

APA also suggests reporting effect size. Please see Publication Manual of the American Psychological Association for further information.

From these four things, the test result and significance are the most important. Basically, you need a test result of a number high enough to reach significance. For example, if I were doing chi-square with 2 df, I need a test result (critical value) of at least 5.992 to reach significance. If you reach significance, you can reject the HO and accept the HA (You always talk about accepting hypotheses). Don‟t worry, though. SPSS does all the math. You only need to understand and report the results.

df\area .050 .025 .010. 1 3.84146^ 5.02389^ 6.63490^7. 2 5.99146 7.37776 9.21034 10. 3 7.81473^ 9.34840^ 11.34487^ 12. 4 9.48773 11.14329 13.27670 14. 5 11.07050^ 12.83250^ 15.08627^ 16.

So, with our restaurant and IQ example, the result would be reported as “The mean IQ of 130.76 for the 30 eaters at the restaurant was significantly higher than the national average IQ, t (29) = 20.650, p < .000, one- tailed).”

In this lesion, you will be introduced to five of the major statistical tests: simple and multiple regression , logistic regression, and ANOVA.

1. ANOVA

Our last important statistical analysis is the Analysis of Variance (ANOVA). Basically, it‟s multiple t -tests. Instead of doing a t -test for every group that you have and all their combinations, you can do a quick ANOVA and check the means of each group with each other.

Please go to http://dl.lib.brown.edu/gateway/ssds/SPSSDATA3.zip and open the Anova file.

Minimum critical value to reach significance at p = .05 with 2 df.

This is again data from the GSS. Let‟s do some sociology/political science research. Here we have two variables, livecom1 , which is number of years a person has lived in a community, and partyid , which is the person‟s political party affiliation (0 strong democrat; 1 not strong democrat; 2 independent, near dem; 3 independent; 4 independent, near rep; 5 not strong republican; 6 strong republican). So, we want to form 7 groups according to how each person views him/herself politically and compare the mean number of years living in a community for each group. We are going to do a One-Way ANOVA. This is where we have one independent variable, partyid, which is categorical data, and one dependent variable, livecom1, which is parametric data. Remember, categorical data is nominal or ordinal. You can break up the data into different groups. Also, there is a nonparametric equivalent of ANOVAs - Kruskal-Wallis.

Let‟s establish our hypotheses:

HO: There is no difference in the number of years a person has lived in a community according to the person‟s political identity. HA: People who are democratic live longer in a neighborhood.

You can also do Two-Way (two independent variables) or more ANOVAS. In addition, there are two ways we deal with our participants or subjects. If the levels are different between the participants, for example different drug doses, then our ANOVA is called Between-subjects. If the levels vary for each participant, so he/she experiences two or more levels, then our ANOVA is called Within-subjects. Use the statistics reference at the end of the tutorial to learn more.

  1. Back in One-Way ANOVA , 1) click on Options. This brings up the One-Way ANOVA: Options dialog. Let‟s add some nice graphics. 2) Select Means plot. 3) Select Descriptive to give us the means of the groups.
  1. Click Continue. 5) Back in One ANOVA dialog, click OK to do the ANOVA.

Now let‟s look at our results.

First, we have our Descriptives. If you look at the Mean , you can see that the mean number of years is smallest for Independents and highest for Strong Democrats and Strong Republicans.

In the ANOVA chart:

A. The df for your result.

B. The F result, which is the result for the ANOVA.

C. The Sig. is .004 there is at least one difference in the means. We need to check out what‟s actually difference in the Post Hocs Tests.

So, let‟s report our results: ( F with the df from the Regression and Residual in subscript from the ANOVA table = result, p (<=) number from the ANOVA table)

There is a significant difference in length of residence among groups of different political affiliation, F 6, 1284= 3.197, p < .004.

Also, we should report our Post Hoc Tests to explain what means were exactly significant.

“Using a Bonferroni post-hoc test ( p <.05), the group of Strong Democrats ( M = 19.55 years) and Strong Republicans ( M = 19.24 years) lived longer in their neighborhoods than Independents ( M = 13.43 years).

2. REGRESSION: This is an analysis that is almost a continuation of correlation. As we have seen, one variable varied with another in correlation. A perfect correlation is when X increases one unit of measurement, Y increases an equal unit of measurement. So, in Regression, you are using the X variable to predict the

In the Multiple Comparisons , you have the comparisons of the groups. You can see that the mean of the group of Strong Democrat compared to Independent is significant. Also, you see that the mean is a positive 6.116, so the Strong Democrat group lived more than 6 years more in their neighborhood than Independents. If you check Strong Republicans compared to Independents, you see a significant mean of 5.808.

The Means Plots is a nice visual of what‟s happening. The mean number of years of Strong Democrats and Republicans is noticeably higher than Indepedents. Remember, the means of the other groups were not significant.

  1. In SPSS Data Editor, open the data file for Regression.
  2. In the data file, click onto Variable View tab at the end of the screen. This is a data set of 109 countries containing 8 variables. We want to use the variable food (Per capita daily calories 1985) as the independent variable to predict death (Crude death rate/1000 people) , our dependent variable.
  3. We need to establish our hypotheses:

H0: There is no relationship between a country‟s death rate and caloric intake. HA: A country‟s death rate can be predicted by the daily caloric intake of its populace.

  1. In the Analyze menu, select Regression and left-click Linear.
  1. In the Linear Regression dialog, 1) in the variable list select Crude death rate/1000 death people [death],

click the arrow and move it into the Dependent field. Select Per capita daily calories 1985 [food], click the arrow and move it to the Independent field. 2) Click on Save since we want the residuals.

  1. In the Linear Regression Save , 1) select Unstandardized in Residuals. This calculates the difference in the observed and predicted values of each case. 2) Click Continue.

Ok, so we can accept our HA. When we report our results, we have to report the Model and the Beta. In reality, you would never do a simple regression. You would have multiple independent variables. We‟ll talk about that shortly.

First our model: F with the df from the Regression and Residual in subscript from the ANOVA table = result, p (<=) number from the ANOVA table, and the Adjusted R Square from the Model Summary.

“Caloric intake significantly predicted mortality rates, F 1,106 = 56.217, p <.001, R^2 =.347.”

You also need to give info on the significant independent variable: Name of Variable, = result, p (< =) result.

“Our independent variable, per capita daily calories, was a significant predictor, = -.589, p < .001.”

Now, let‟s visualize our data with a scatterplot to get a better sense of how our modal is doing.

  1. In the Output window, go to the Graphs menu, and left-click Chart Builder.
  2. In the Scatterplot dialog, 1) left-click on Scatter/Dot and then 2) left-click on Simple Scatter.
  1. The dependent variable goes on the Y axis and the independent variable goes on the X axis. In the Simple Scatterplot , 1) move the variable Crude death rate to the Y Axis field, and 2) Per capita daily calories variable to the X Axis field.
  2. Now set up the country labels for the cases. 1) left-click on the Groups/Point ID tab. 2) Select Point ID label and the Point ID box appears in the Chart Preview area. 3) Drag and drop the variable Country variable into the Point ID box. 4) Left-click OK.
    1. Click on the Add Fit Line at Total icon and close the Properties dialog. The R Sq has been added to the bottom right – R Sq Linear = 0..

Observe some of the cases above the upper lower end of the regression line. See a pattern? They‟re European countries.

Let‟s now look at our residuals. Remember, they are the distance of the observed case from the regression line. Or, in other words, how far our cases fell from the line, which is our model.

  1. Click back into the Data Editor. You now have a new variable, res_1. This is the residuals.
  2. We want to line up the residuals from highest to lowest. Right-click onto the title bar of the column for res_1. Left-click on Sort Descending.
  3. If you scroll down, you notice that Spain is the European country with the lowest residuals, -.97067. So, you can see a pattern that European countries follow the regression line or the residuals are higher.
  1. In the Linear Regression dialog, 1) select Crude death rate/1000 , click the arrow and move it to the Dependent field. Leave Per capita daily calories in the Independent variables. 2) Select pop ( population in millions), energy (Per cap energy consumed), gnpcap (Per capita GNP 1985), gnpgro (Annual GNP growth % 65-86) and urban (% population urban 1985), click the arrow and move them into Independent. There should be 6 independent variables all together. 3) Don‟t forget to turn off the residuals by clicking onto Save. 4) We need to get do multicollinearity test. Click on Statistics.
  2. In the Linear Regression: Statistics dialog, turn on Collinearity diagnostics and click on Continue.

There are several methods to enter the variables, such as Enter, Stepwise and Remove. The default is Enter. Also, you need to report what method you used. Usually, if you have a large set of independent variables, more than seven, you can use one of the stepwise options to eliminate variables.

Multicollinearity is when your independent variables correlate with each other. You need to avoid this because it‟s really just creating noise in your model. For example, poverty correlates with crime and illiteracy. So, why have all three variables when poverty is a major cause of the other two?

  1. Plots help you visualize your data in multiple regression. You can test for normality, linearity, equality of variances and outliers. 1) Back in the Linear Regression dialog, click on Plots. 2) In the Linear Regression: Plots dialog, click on Histogram and Normal Probability Plot. This will give you histograms and plots of the residuals standardized by the standard deviation. 3) Back in the Linear Regression dialog, click OK.
  2. Scroll down to Model Summary and ANOVA. Here you find the model results.

A. In Model Summery , you find the R Square of .525. So, this model does a better job of explaining the variance of the dependent than only using daily calories.

B. In the ANOVA table, you find the df , F value and the Sig. , all of which you need to report. The Sig. for the model is .000 , so we can reject the null hypothesis.