Psychology 815:Computer Lab #3
Reading in data from an external source
Sept. 13, 1996


Objectives:

  1. Review labs 1 and 2
  2. Introduction to the child behavior problem data set
  3. PROC REG

Objective 1: I will give you the raw data (in two separate files) that we will be using the rest of the semester. The name of the two raw data file are JAMCBCL.DAT and USCBCL.DAT

 a.) I will also give you most of the SAS code that is required to create a single SAS data set from the two raw data files. Your task is to fill in the missing lines.

 b.) After you create the SAS data set, get means and standard deviations for the following variables:


               WITHDRA                  THOUGHT

               SOMATIC                  ATTENTN

               ANXIETY                  DELINQT

               SOCPROB                  AGGRESS
c.) Then get a correlation matrix for all of the above variables BY CULTURE (Hint: You will need to sort the data first)



Objective 2: Just sit back and listen :)


Objective 3: Run regressions: Use SEXCB or AGE as the IV and any of the above as the DV

Here's the SAS code along with the line-by-line explanation.

PROC REG; /* Tells SAS you want to run a REGRESSION*/
MODEL "DV" = "IV"; /* where "DV" and "IV" are the names of your dependent and independent variables*/
RUN; /* Tells SAS to go ahead and do it*/

Did you get through everything? If you did, pat yourself on the back. You're well on your way to being a SAS expert! See you guys next week!