Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. cohens_d_r <- function(x, object) UseMethod("cohens_d_r", x)
  2.  
  3. cohens_d_r.lm <- function(x, object) {
  4. x / sd(resid(object))
  5. }
  6.  
  7. cohens_d_r.mlm <- function(x, object) {
  8. x / apply(resid(object$lm), 2, sd)
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement