Advertisement
JF11579

Correlation Pop Growth Rate Pct & Income Growth Rate Pct

May 2nd, 2020
1,175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 1.10 KB | None | 0 0
  1. #What is the correlation coefficient btwn pop growth and inc growth ?  -0.2849001  
  2. cor( pop_inc_2$pop_growth_rate_pct , pop_inc_2$Growth_rate_pct)
  3.  
  4. lmodel<- lm(pop_inc_2$pop_growth_rate_pct ~ pop_inc_2$Income_growth_rate_pct)
  5.  
  6. #The Intercept  and the slope
  7. lmodel$coefficients
  8. #Intercept             Slope
  9. # 1.3700905            -0.0194357
  10.  
  11. summary(lmodel)
  12.  
  13. > summary(lmodel)
  14.  
  15. Call:
  16. lm(formula = pop_inc_2$pop_growth_rate_pct ~ pop_inc_2$Income_growth_rate_pct)
  17.  
  18. Residuals:
  19.      Min       1Q   Median       3Q      Max
  20. -0.79338 -0.47389 -0.02078  0.25877  1.56120
  21.  
  22. Coefficients:
  23.                                   Estimate Std. Error t value          Pr(>|t|)    
  24. (Intercept)                       1.370091   0.133368  10.273 0.000000000000172 ***
  25. pop_inc_2$Income_growth_rate_pct -0.019436   0.009642  -2.016            0.0497 *  
  26. ---
  27. Signif. codes:  0***0.001**0.01*0.05 ‘.’ 0.1 ‘ ’ 1
  28.  
  29. Residual standard error: 0.5951 on 46 degrees of freedom
  30. Multiple R-squared:  0.08117,   Adjusted R-squared:  0.06119
  31. F-statistic: 4.064 on 1 and 46 DF,  p-value: 0.04968
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement