Docsity

Interaction Between Two Interval Variables - Sociological Statistics | SOC 402, Assignments of Introduction to Sociology

Toggle sidebar
bg1
Soc. 402 Spring 2001
Assignment #4
Due: Beginning of Class, February 20th
Instructions: This assignment uses the nsfh_l6" SAS data file found on the course web
site (go to www.uic.edu/~ragordon and click on courses  to download this file). The
nsfh_l6" data file contains information collected in the NSFH Waves 1 and 2 (1992-1994)
from 5,433 adults who were working and had some earned income. There are three
variables in this file (in addition to the caseid):
1. REARNINC R s ANNUAL
Earned Income
2. HRWORK R s Hours Spent
at Paid
Work/Week
3. REDUC R s Education
0 None
01-11 First grade through eleventh grade
12 High School diploma or GED
13 Some college, but no degree
14 Associate Degree (2-year)
16 Bachelor's Degree
18 Master's degree
20 Doctorate or professional degree
In this assignment, you will use these data to estimate an interaction model between two
interval variables. This model is a less theoretically interesting model than the ones we ll
look at in class, but it is a good model on which to practice the mechanics of interacting
two interval variables. Use alpha=.05 for all tests unless otherwise indicated.
You should answer the questions below, conducting SAS analyses of the nsfh_l6" data
file as necessary. SAS output included with your responses should be saved as a rtf file
and edited within MS Word or Word Perfect. You can write your answers to questions by
freehand on printouts of the output and/or type your responses directly into the rtf file.
In either case, the paper you hand in should be neat, easy to follow, and concise. To
assist in grading, turn in your SAS program (text file) in addition to the SAS output
(rtf file).
1. Interaction between Two Interval Variables
SAS TASKS:
Create a data file to make predictions when REDUC=10, 14, and 18 and when
HRWORK=15,30,45, and 60. (Note: Create the relevant input data file for the predictions
similar to the example discussed in class).
Regress REARNINC on HRWORK and REDUC. Make predictions based on this
pf2

Partial preview of the text

Download Interaction Between Two Interval Variables - Sociological Statistics | SOC 402 and more Assignments Introduction to Sociology in PDF only on Docsity!

Soc. 402 Spring 2001 Assignment # Due: Beginning of Class, February 20th

Instructions : This assignment uses the nsfh_l6" SAS data file found on the course web site (go to www.uic.edu/~ragordon and click on courses  to download this file). The nsfh_l6" data file contains information collected in the NSFH Waves 1 and 2 (1992-1994) from 5,433 adults who were working and had some earned income. There are three variables in this file (in addition to the caseid):

  1. REARNINC R  s ANNUAL Earned Income
  2. HRWORK R  s Hours Spent at Paid Work/Week 3. REDUC R  s Education 0 None 01-11 First grade through eleventh grade 12 High School diploma or GED 13 Some college, but no degree 14 Associate Degree (2 -year) 16 Bachelor's Degree 18 Master's degree 20 Doctorate or professional degree

In this assignment, you will use these data to estimate an interaction model between two interval variables. This model is a less theoretically interesting model than the ones we  ll look at in class, but it is a good model on which to practice the mechanics of interacting two interval variables. Use alpha=.05 for all tests unless otherwise indicated.

You should answer the questions below, conducting SAS analyses of the nsfh_l6" data file as necessary. SAS output included with your responses should be saved as a rtf file and edited within MS Word or Word Perfect. You can write your answers to questions by freehand on printouts of the output and/or type your responses directly into the rtf file. In either case, the paper you hand in should be neat, easy to follow, and concise. To assist in grading, turn in your SAS program (text file) in addition to the SAS output (rtf file).

1. Interaction between Two Interval Variables

SAS TASKS:

Create a data file to make predictions when REDUC=10, 14, and 18 and when HRWORK=15,30,45, and 60. (Note: Create the relevant input data file for the predictions similar to the example discussed in class).

Regress REARNINC on HRWORK and REDUC. Make predictions based on this

additive model and create a three dimensional plot of the predictions against HRWORK and REDUC using PROC G3D.

Create a product term using HRWORK and REDUC. Regress REARNINC on HRWORK, REDUC, and the product term. Make predictions based on this interaction model and create a three dimensional plot of the predictions against HRWORK and REDUC using PROC G3D.

Use the CONDEQN macro to obtain the coefficients, their standard errors, and their significance for all of the conditional regression equations you just plotted for the interaction model (i.e., 7 equations in all). Use the SAS test command to test the significance of the intercepts and slopes in these same conditional regression equations.

WRITE-UP TASKS:

A. Based on the parameter estimates in the interaction model , is there evidence of an interaction between REDUC and HRWORK in predicting REARNINC? (Justify your answer by stating the appropriate null and alternative hypotheses and the appropriate critical and/or p-values) B. Write the conditional regression equations based on the coefficients obtained from SAS (i.e., don  t calculate them by hand; use the results of the CONDEQN macro). Write the standard errors in parentheses underneath the coefficients. Round all numbers to two decimal places. C. For the conditional regression equation for REDUC when HRWORK=30, verify that the output from the SAS test command is equivalent to the output based on the CONDEQN macro (i.e., show how the t and F based on the two different approaches are related for the intercept and slope in this conditional equation). Do the same for the conditional regression equation for HRWORK when REDUC=14. D. Verify the coefficients in the two following conditional regression equations by calculating them by hand: conditional regression equation when HRWORK=45 and conditional regression equation when REDUC=10. E. In a few brief sentences, summarize the results of the interaction model (i.e., be sure to contrast the shapes of the three-dimensional plots for the additive and interaction models).