After running the code check a line by line from 1 to 13 in Console what each line of the code does? ( Clearly explain what each line mean with examples ) ??
1-x<-rnorm(100, 3,2)
2-mean(x)
3-var(x)
4-y<- -2.5*x
5-mean(y)
6-var(y)
7-par(mfrow=c(1,2))
8-hist(y, xlab='', main='Histogram Y')
9-boxplot(y, ylab="Y Sample", main='Boxplot Y')
10-abline(h=mean(y), lty=2)
11-#qqnorm(y, pch = 19)
12-#qqline(y, col = "steelblue", lwd = 2)
13-par(mfrow=c(1,1))
Get Answers For Free
Most questions answered within 1 hours.