Tuesday, May 5, 2015

Multiple Regression Analysis

This week we are learning about how to run multiple regression analysis. Regression is one of the most popular statistical techniques that is used to predict a single outcome variable (continuous variable) from multiple independent variables (continuous as well as binary variables). For example, you may want to predict students' academic performance (GPA of a scale from 1-4) from their gender (binary), family income, age, parental education, self-efficacy (all continuous). Having multiple independent variables in a single model allows researchers the confidence to conclude their results while taking into account other factors that may also influence the academic performance variable. As you recall, correlation, ttest, or anova provides results based on a one-on-one relationship (or bivariate relationship). However, these bivariate analyses are also useful for us as they provide a descriptive view to the data.

Now let's look into our data that we used earlier in your ANOVA analysis. Let's say we are interested in predicting academic performance from a few other independent variables such as gender, age, education of mother and father, computer lab used, and parental involvement. Command used for multiple regression is "regress" or "reg" for short. After "reg" is your outcome variable then followed by the rest of your independent variables. Here is how it looks like:  reg rank gender age edumom edudad labuselast parentinvolvement , beta.

However, before we conduct any analysis, we need to check the distribution of our variables being used first. You will need to examine whether or not any of your variables are skewed. Regression analysis is susceptible to outliers. Here is what I would do for the following variables:

sum rank, detail
tab gender
sum age, detail
tab edumom  (you can also do sum edumom, d)
tab edudad (you can also do sum edudad, d)
tab labuselast
sum parentinvolvement, detail

As you know tab will give you percentages to each response and sum, detail gives you skewness value. As you recall from previous class on variable manipulation, the rule of thumb of a normally distributed variable would be a skewness of 1 and lower (nearer to zero is better) and Kurtosis of lower than 3. For more information on skewness and Kurtosis, please refer to this website. All of these variables seem to look okay, except edumom and edudad. See below of the breakdown by each level of education when using tab command:


As you can see only a few fathers having education above high school (only 10 of them) and it is even more disproportional for mothers (only a few of them having high school (3.73%) and above high school education (.60%)). It looks skewed. You can also check it using sum, detail to examine skewness.


As you can see, the skewness of edudad is almost 1 and Kurtosis is exceeding the cut-off point of 3, and the same for edumom. These indicate normal distribution problem.

What can you do?

The best way is to recode these two variables, and then check the skewness again. Let's recode the edudad first, and then you can recode the edumom on your own. As you know, before you recode any variables, it is recommended that you create a new one and use that one, so you can keep your original variable just in case you need to go back later. See the whole process of doing it below:


Those are the 8 steps I would do to recode one variable and to check the skewness of that variable. As you can see, the skewness is reduced to almost zero, and Kurtosis to lower than 3.

Now, it's ready to run our regression analysis:

reg rank gender age edumom_new  edudad_new  labuselast parentinvolvement , beta 



The regression output above shows that the overall regression model with all of these predictors is statistically significant, F(6, 556)=10.16, p<.001, Adjusted R-squared = .09. So first, look at the probability (#1), then R-squared or Adjusted R2 (#2), and if the #1 is significant, then look into individual p values of each predictor (#3). The adjusted R-squared of .09 means that 9% of the variance in the outcome variable is accounted for by the independent variables in the model. Adjusted R2 is preferred when you have many independent variables in your model as it adjusts for the number of variables used in the model. Usually, when you add more variables into the model, R2 tends to increase, so to make sure that variables you include into the model are meaningful (e.g., not just a junk that you throw in), adjusted R2 tells you so. R2 or adjusted R2 also equally indicates effect size, meaning that the larger the R2 values, the larger the effect size, hence more desired. Cohen (1988) indicates that in social science fields, typical effect size tends to be medium.

Based on the regression output above, significant predictors include gender (beta=.23, p<.001), age (beta=.10, p<.05), and parental involvement (beta= -.10, p<.05). Note that if the Prob>F is not significant, then you do not need to mention these significant predictors.

This is an example of how multiple regression table and the write up look like based on the above regression output:


Write Up:

"Table 1 shows that the overall model was significant, F(6, 556)=10.16, p<.001, Adjusted R2=.09. The model explains 9% of variance accounted for by the predictor variables. Factors that predict academic performance include gender (β=.23, p<.001), age (β=.10, p<.05), and parental involvement (β= -.10, p<.05). Specifically, the results suggest that being female, being younger, and having parents who are more involved are significantly associated with better academic performance."

Practice on Your Own

Using the same data above, please predict parental involvement from gender, age, academic performance (rank), education of mother and father, and SES-related variables (electricity, tv, cell, desk, calculator). Your response should include

1. Check to see if your variables are skewed and steps to reduce the skewness
2. Provide commands used at each step
3. Regression table (follow the APA style above)
4. Write up (follow the APA style above)

Note that it is easier and faster for me to read your output if you do the screenshots.




6 comments:

  1. Very good blog regarding data analysis. If you want to know more about data integration and data gathering please contact us from the links below

    The article is meant to help informatica interview questions and answers for experienced individuals or students preparing on this particular topic. There are so many new important informatica scenario based questions points, question covered and different new points all covered in this piece all at ease. The best informatica interview questions thing about the article is that it makes studying and preparation quite simple for individuals and accordingly they can prepare for the informatica questions interview.

    ReplyDelete
    Replies
    1. Welcome To Cie491: Statistical Data Analysis Using Stata: Multiple Regression Analysis >>>>> Download Now

      >>>>> Download Full

      Welcome To Cie491: Statistical Data Analysis Using Stata: Multiple Regression Analysis >>>>> Download LINK

      >>>>> Download Now

      Welcome To Cie491: Statistical Data Analysis Using Stata: Multiple Regression Analysis >>>>> Download Full

      >>>>> Download LINK 0w

      Delete
  2. The actual editor who is editing an APA stylistic cardstock must have intensive practical knowledge in taking this type of activity.


    apa editing

    ReplyDelete
  3. Download STATA 15 Full Version (New Link)
    LINK NEW DOWNLOAD
    - http://idsly.bid/LDmghu
    - http://idsly.bid/rIFx6YqU
    - http://idsly.bid/NL1vvmHv
    - http://idsly.bid/w4UP

    ReplyDelete
  4. I recently came across your website with the aid of Search engine whereas interested in many of these somewhat instructive put up including your put up appearances especially significant in my circumstances. consultants need amazing usefulness in your penning business enterprise as they are what what individuals work out http://www.ukraineoutsourcingrates.com/javascript-development-ukraine-rates/ consumer's situations with respect to his or her's preferences.

    ReplyDelete
  5. I discovered your site by way of Search engines whilst trying to find this kind of Redirect Http to Https educational publish as well as your publish appears really fascinating personally. authors possess excellent significance within the composing organization since they're those that resolve client's difficulties regarding their own requirements.

    ReplyDelete