Advertisement
Guest User

Untitled

a guest
Feb 5th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. # extract coefficients
  2. coefs <- data.frame(coef(summary(m3)))
  3.  
  4. # get p-values from the t-distribution using the t-values and approximated
  5. # degrees of freedom
  6. coefs$p.KR <- 2 * (1 - pt(abs(coefs$t.value), df.KR))
  7. coefs
  8.  
  9. # use normal distribution to approximate p-value
  10. coefs$p.z <- 2 * (1 - pnorm(abs(coefs$t.value)))
  11. coefs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement