SPSS Command Types

Summary SPSS commands come in three basic types: procedures, transformations and other commands. Understanding this distinction will allow you to get things done in SPSS faster and more efficiently. SPSS Command Types Diagram SPSS Transformations As shown in the figure, the first question is when a command is executed. Some SPSS commands are not carried out […]

SPSS RV Function

Basic Use COMPUTE v1 = RV.NORMAL(0,1). Summary In SPSS, RV is short for random variable. It draws random values from a given probability distribution.* The latter is specified as a period separated suffix as in RV.BERNOULLI(.5).RV is mostly but not necessarily used with COMPUTE. Random Sample (N = 10,000) from a Standard Normal Distribution SPSS Rv Examples A nice way to get […]

SPSS REPLACE Function

Definition SPSS REPLACE replaces a substring in a string by a different (possibly empty) substring. SPSS Replace – Removing Spaces URLs are created from “title” by using REPLACE. The syntax below demonstrates how to do this. We have a dataset holding the titles of web pages and we’d like to convert these to URLs. For one thing, we don’t like spaces in […]

SPSS SELECT IF – Simple Tutorial

In SPSS, SELECT IF deletes cases (rows of data) that don’t satisfy some condition(s). Like so, SELECT IF basically means “don’t delete if …” A minimal example isSELECT IF(GENDER = 1). SPSS SELECT IF – Some Examples Say we collected data on our employees and the resulting data file is employees.sav. Our client is only interested in female […]

SPSS FREQUENCIES Command

SPSS FREQUENCIES command can be used for much more than frequency tables; it’s also the easiest way to obtain basic charts such as histograms and bar charts. On top of that, it provides us with percentiles and some other statistics. Plenty of reasons for taking a closer look at this ubiquitous SPSS command. We’ll use employees.sav throughout […]

SPSS SPLIT FILE – A Quick Tutorial

SPLIT FILE is a command for having separate output for subsets of cases. It does not literally split your file into smaller files. Subsets are defined by the values on one or more split variables. After running SPLIT FILE, output is reported for each split group separately until you run SPLIT FILE OFF.Example of output […]

SPSS WEIGHT Command

By default, every case in your data counts as a single case. However, you can have each case count as more or less than one case as well. This is called weighting. For instance, the first case in your data may count as 2 cases and the second one as .5 cases. These numbers, the case weights, […]

SPSS – What Is It?

SPSS means “Statistical Package for the Social Sciences” and was first launched in 1968. Since SPSS was acquired by IBM in 2009, it’s officially known as IBM SPSS Statistics but most users still just refer to it as “SPSS”. SPSS – Quick Overview Main Features SPSS is software for editing and analyzing all sorts of data. These data may come […]

SPSS Syntax Introduction

SPSS” Syntax Editor window is the second of SPSS’ three main windows. As we’ll see in a minute, this is where we run commands for opening files, editing data, generating results and, finally, saving files. The Syntax Editor is recognized by an orange icon  in its left top corner. SPSS Syntax – First Encounter We recommend […]

JavaScript Where To

The <script> Tag In HTML, JavaScript code must be inserted between <script> and </script> tags. Example <script> document.getElementById(“demo”).innerHTML = “My First JavaScript”; </script> Try it Yourself » Old JavaScript examples may use a type attribute: <script type=”text/javascript”>. The type attribute is not required. JavaScript is the default scripting language in HTML. JavaScript Functions and Events A JavaScript function is […]

JavaScript Introduction

This page contains some examples of what JavaScript can do. JavaScript Can Change HTML Content One of many JavaScript HTML methods is getElementById(). This example uses the method to “find” an HTML element (with id=”demo”) and changes the element content (innerHTML) to “Hello JavaScript”: document.getElementById(“demo”).innerHTML = “Hello JavaScript”; Try it Yourself » JavaScript accepts both double and single […]