##################################################################### # R commands Stat 515 # Lab 3 University of South Carolina ###################################################################### # This file contains the R commands for the lab. # # Lines beginning with the symbol '#' are comments in R. All other # lines contain code. # # In R for Windows, you may wish to open this file from the menu bar # (File:Display file); you can then copy commands into the command # window. (Use the mouse to highlight one or more lines; then # right-click and select "Paste to console".) ###################################################################### x<-c(62, 74, 78, 81, 84, 84, 88, 90, 92, 95) qqnorm(x) qqline(x) data = rnorm(100,100,15) #data=rexp(100,rate=1/20) hist(data) mean(data) sd(data) quantile(data, c(0,.25,.5,.75,1), type =6) IQR(data,type=6) IQR(data,type=6) / sd(data) qqnorm(data) qqline(data)