UCLA Academic Technology Services HomeServicesClassesContactJobs
Help the Stat Consulting Group by giving a gift             
Loading

Statistica Class Notes
Managing Data

1.0 Demonstration and explanation

Example 1.1 - Honors Thesis

Let's pretend that we are working on our honors thesis and that we want to study just "good readers", those with reading scores 60 or higher. We will open the file and then take a subset to include the students with reading scores of 60 or higher.

Notice that a new data set has been created with only the desired cases.  Now we will save our data.

Example 1.1 continued - keeping variables

We want to keep just some variables, including id female read and write

Example 1.2 Masters Thesis

Let's suppose we are working on our masters thesis.  The data are located in a folder called c:\statistica\masters and there are two files in this folder, one for the males (hsmale.sta) and one for the females (hsfemale.sta).  We would like to combine these files.

Example 1.3 Dissertation

Now let's suppose that we are working on our dissertation.  The data are in a folder called c:\statistica\diss and there are two files in this folder, one with the demographic information (hsdem.sta) and one with the test scores (hstest.sta).  We would like to match merge these files based on id.  Before we can match merge these files, we need to open each file, sort it on id, and then save the sorted file.

Now that we have sorted and saved the first file (hsdem.sta), we will do the same thing for the second file (hstest.sta).

Finally, we will open the first file (hsdem.sta) and merge it with the second file (hstest.sta).  We will save the merged data file with the name hsdiss.sta.


How to cite this page

Report an error on this page or leave a comment

UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services


The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California.