Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. # scale (continous) variables
  2. # scale multiple variables simultaneously and get a reusable scaling model for applying to test data
  3.  
  4. transformations <- preProcess(birdsVars) #what is done
  5. transformations
  6. scaledVars <- predict(transformations,birdsVars) # all on the same scale
  7. scaledVars
  8. print(xtable(scaledVars), type = "latex")
  9. predict(transformations,testing_x)
  10.  
  11. knitr::kable(t(summary(scaledVars)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement