Regression Modeling in Practice: Assign-02 - Test a Basic Linear Regression Model
Hypothesis For this assignment I would like to look into the following hypothesis/research question. An individual’s amount of cigarette smoking is associated with the individual’s age on when the very first cigarette was introduced/smoked.
Variables of my Analysis: Explanatory Variable (Quantitative): Age to the introduction of the 1st Cigarette Response Variable (Quantitative): Number of cigarettes smokes within the last 30 days
Here is my output of my Code:
Discussion:
The F Statistics is 60.34 and the P value is <0.001, so we can reject the null hypothesis and it can be concluded that the introduction age to cigarette is significantly associated with nicotine dependence (the number cigarettes smoked). Beta Sub one value = -0.59926312 Beta Sub Zero value = 14.81884194 By examining the scatter plot there is only one outlier (highlighted in yellow).
Equation: Nicotine Dependence = 14.81884194 - 0.59926312 (introduction age to cigarette)
/* CODE: */
/* Student Name: Rajeev.S Assignment 02 File: c3_assign2-v03.sas Date: 2015-12-21 */
LIBNAME mydata "/courses/d1406ae5ba27fe300 " access=readonly;
/* Addolecents Health Data Sets*/ DATA new; set mydata.addhealth_pds;
LABEL H1TO2 = "Age of introduction to the first Cigeratte" H1TO7 = "Number of Cigarettes smoked in a day, (within past 30 days)";
/*Intro to Smoking age*/ IF H1TO2 = 0 or H1TO2 > 20 THEN H1TO2 = .;
/*# of Cig that's smoked in the past 30 days*/ if H1TO7 = 0 or H1TO7 > 95 THEN H1TO7 = .;
PROC GLM; MODEL H1TO7=H1TO2;
RUN;







