User Tools

Site Tools


multiple_regression

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
multiple_regression [2019/05/21 22:41] – [Why overall model is significant while IVs are not?] hkimscilmultiple_regression [2019/11/01 09:23] – [e.g.,] hkimscil
Line 330: Line 330:
 ====== Why overall model is significant while IVs are not? ====== ====== Why overall model is significant while IVs are not? ======
 see https://www.researchgate.net/post/Why_is_the_Multiple_regression_model_not_significant_while_simple_regression_for_the_same_variables_is_significant see https://www.researchgate.net/post/Why_is_the_Multiple_regression_model_not_significant_while_simple_regression_for_the_same_variables_is_significant
 +
 +<code>
 +RSS = 3:10 #Right shoe size
 +LSS = rnorm(RSS, RSS, 0.1) #Left shoe size - similar to RSS
 +cor(LSS, RSS) #correlation ~ 0.99
 + 
 +weights = 120 + rnorm(RSS, 10*RSS, 10)
 + 
 +##Fit a joint model
 +m = lm(weights ~ LSS + RSS)
 +
 +##F-value is very small, but neither LSS or RSS are significant
 +summary(m)
 +</code>
 +
  
 <code>> RSS = 3:10 #Right shoe size <code>> RSS = 3:10 #Right shoe size
Line 465: Line 480:
   * LifeSat Score on Life Satisfaction Inventory seven years after College   * LifeSat Score on Life Satisfaction Inventory seven years after College
   * Income Income seven years after College (in thousands)   * Income Income seven years after College (in thousands)
 +
 +====== exercise ======
 +<code>
 +library(ggplot2)
 +library(dplyr)
 +library(statsr)
 +library(varhandle)
 +
 +library(gridExtra)
 +library(janitor)
 +library(car)
 +library(SignifReg)
 +</code>
 +
 +<code>
 +load("movies.Rdata")
 +</code>
 +
  
  
Line 487: Line 520:
   * https://www.r-bloggers.com/analysis-of-covariance-%E2%80%93-extending-simple-linear-regression/   * https://www.r-bloggers.com/analysis-of-covariance-%E2%80%93-extending-simple-linear-regression/
   * http://www.wekaleamstudios.co.uk/posts/analysis-of-covariance-extending-simple-linear-regression/   * http://www.wekaleamstudios.co.uk/posts/analysis-of-covariance-extending-simple-linear-regression/
 +
 +https://www.youtube.com/user/marinstatlectures/search?query=Multiple+Linear+Regression+
 +
 +
 {{tag> "research methods" "statistics" "regression" "multiple regression"}} {{tag> "research methods" "statistics" "regression" "multiple regression"}}
 +
multiple_regression.txt · Last modified: 2023/10/19 08:39 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki