Statistics and Statistical Programming (Winter 2017)/R lecture outline: Week 8: Difference between revisions

From CommunityData
(Created page with "* log() DV, log() iv * polynomial terms: I() * graphing residuals against fitted values (not just against different values of x * discussing anova better")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
* log() DV, log() iv
* log() DV, log() IV
* polynomial terms: I()
* polynomial terms and interaction terms both with: I()
* graphing residuals against fitted values (not just against different values of x
* logistic regression
* discussing anova better
** create a dummy variable: mpg > mean(mpg)
** glm(formula, family=binomial("logit"))
 
two things worth returning to:
 
* graphing residuals against fitted values (not just against different values of x)
* discussing anova() better. The key thing I didn't talk about is about different types of "sum of squares" which are discussed in depth on [https://afni.nimh.nih.gov/sscc/gangc/SS.html this page hosted by the NIH]. By default, SPSS produces Type III standard errors although these [https://myowelt.blogspot.com/2008/05/obtaining-same-anova-results-in-r-as-in.html very frequently not what you want].
** Getting the same results in R is easy enough though: library(car); Anova(fit, type="III")

Latest revision as of 01:24, 20 February 2017

  • log() DV, log() IV
  • polynomial terms and interaction terms both with: I()
  • logistic regression
    • create a dummy variable: mpg > mean(mpg)
    • glm(formula, family=binomial("logit"))

two things worth returning to:

  • graphing residuals against fitted values (not just against different values of x)
  • discussing anova() better. The key thing I didn't talk about is about different types of "sum of squares" which are discussed in depth on this page hosted by the NIH. By default, SPSS produces Type III standard errors although these very frequently not what you want.
    • Getting the same results in R is easy enough though: library(car); Anova(fit, type="III")