Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Data Analysis with IBM SPSS Statistics

You're reading from  Data Analysis with IBM SPSS Statistics

Product type Book
Published in Sep 2017
Publisher Packt
ISBN-13 9781787283817
Pages 446 pages
Edition 1st Edition
Languages
Authors (2):
Ken Stehlik-Barry Ken Stehlik-Barry
Profile icon Ken Stehlik-Barry
Anthony Babinec Anthony Babinec
Profile icon Anthony Babinec
View More author details

Table of Contents (17) Chapters

Preface 1. Installing and Configuring SPSS 2. Accessing and Organizing Data 3. Statistics for Individual Data Elements 4. Dealing with Missing Data and Outliers 5. Visually Exploring the Data 6. Sampling, Subsetting, and Weighting 7. Creating New Data Elements 8. Adding and Matching Files 9. Aggregating and Restructuring Data 10. Crosstabulation Patterns for Categorical Data 11. Comparing Means and ANOVA 12. Correlations 13. Linear Regression 14. Principal Components and Factor Analysis 15. Clustering 16. Discriminant Analysis

Selecting a random sample of cases

Sample permanently draws a random sample of cases to process in all the subsequent procedures. Use Sample to draw a random sample of cases.

Sample allows two different specifications. One way to run it is to specify a decimal value between 0 and 1 reflecting the approximate fraction of cases that you would like to see in the sample. The second is to select an exact-size random sample, specify a positive number that is less than the file size, and follow it with the keyword FROM and the active dataset size.

To illustrate sampling, suppose you want to draw an approximately 30 percent sample from the GSS2016 active file. We will demonstrate the effect of sampling by obtaining statistics on age before and after sampling.

Here is the SPSS code:

DESCRIPTIVES VARIABLES=age
/STATISTICS=MEAN STDDEV MIN MAX.
FILTER OFF.
USE ALL.
SAMPLE .30.
DESCRIPTIVES VARIABLES...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}