Advertisement
RePs2g

Untitled

Oct 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.18 KB | None | 0 0
  1. # Fitting APM response, Height, MPG, Age as predictors
  2. APM.gam <- gam(APM~s(Height)+s(MPG)+s(Age),data=baskball.df)
  3.  
  4. # Plotting all predictors
  5. par(mfrow=c(2,2))
  6. plot(APM.gam,se=TRUE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement