×

### Let's log you in.

or

Don't have a StudySoup account? Create one here!

×

or

8

0

2

# QUANT METH BEHAV DATA I PSYC 709

GPA 3.59

Staff

These notes were just uploaded, and will be ready to view shortly.

Either way, we'll remind you when they're ready :)

Get a free preview of these Notes, just enter your email below.

×
Unlock Preview

COURSE
PROF.
Staff
TYPE
Class Notes
PAGES
2
WORDS
KARMA
25 ?

## Popular in Psychlogy

This 2 page Class Notes was uploaded by Alfonso Grady PhD on Monday October 26, 2015. The Class Notes belongs to PSYC 709 at University of South Carolina - Columbia taught by Staff in Fall. Since its upload, it has received 8 views. For similar materials see /class/229641/psyc-709-university-of-south-carolina-columbia in Psychlogy at University of South Carolina - Columbia.

×

## Reviews for QUANT METH BEHAV DATA I

×

×

### What is Karma?

#### You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/26/15
Linear Regression Continued 1 More with PROC GLM PROC GLM which we discussed in the last lab is a procedure that can be used to t simple linear regression and many other type of models For our purposes today we are going to use PROC GLM to do some inference ie con dence intervals Recall that the general statement for the models is PRUC GLM lt options gt MODEL dependentsindependents lt options gt BY variables TEST lt Heffects gt Eeffect lt options gt OUTPUT lt UUTSAS data set gt keywoLd ucuues lt keywoLd ucuues gt lt option gt Recall that the MODEL statement will consist of the variables being considered for a relationship7 with the dependent being the y and the independent variable being X The main output 7keyword7s7 well be using are OUT7 PREDICTED or ll7 and RESIDUAL or R Today well go over the options CLPARM7 and ALPHA that go on the MODEL line after the backslash Here is an example using the hanes data set data new set tmp1hanes secsex run proc sort datanew by sex run proc glm datanew by sex model sysbpdiabpclparm alpha1 output outregdata rresid pyhat run quit proc gplot dataregdata plot yhatresid run quit 2 Using the Data Step with the IF statement The data step in SAS is powerful Some companies one7s i7ve worked for use the data step almost exclusively and the statistical options little What the data step allows you to do is take a gigantic data set and manipulate it with ease It also has allows the power of working with no data at all An example is turning a random variable that has 3 outcomes into one that has two Take the hanes data set for example7 there is a variable smoke that can be one of three levels Not smoked more that 100 cigarettes 17 smoked more than 100 but does not smoke now27 or smoked more than 100 and is still smoking now Say we are interested in 1 vs 2 or 3 Here is the code to do that data new set tmpl nhanes if smode eq 1 then smoke21 if smode eq 2 or smode eq 3 then smoke22 run proc print run Another example is generating States by random data new input SC NC ALB FL GA DTH cards SouthCar NorthCar Alabama Florida Georgia Other data test set new do i1 to 50000 stranuni0 if st 1e 2 then stateDTH if st gt 2 and st 1e 4 then stateSC if st gt 4 and st 1e 6 then stateNC if st gt 6 and st 1e 8 then stateALB if st gt 8 and st 1e 9 then stateFL if st gt 9 and st 1e 10 then stateGA output end drop SC NC ALB FL GA UTH run proc freq tables state run

×

×

### BOOM! Enjoy Your Free Notes!

×

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

## Why people love StudySoup

Bentley McCaw University of Florida

#### "I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Jennifer McGill UCSF Med School

#### "Selling my MCAT study guides and notes has been a great source of side revenue while I'm in school. Some months I'm making over \$500! Plus, it makes me happy knowing that I'm helping future med students with their MCAT."

Bentley McCaw University of Florida

#### "I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Parker Thompson 500 Startups

#### "It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!
×

### Refund Policy

#### STUDYSOUP CANCELLATION POLICY

All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email support@studysoup.com

#### STUDYSOUP REFUND POLICY

StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here: support@studysoup.com

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to support@studysoup.com