Answer To: Choose one of your classmates’ data sets (see attached data to analyze). Take 30 random samples of 5...
Shubham answered on Jan 29 2021
One of our classmates datasets are chosen as the expected number of email I received from my official email daily.
> x = c(1,1,1,5,3,4,5,1,4,5)
# Taking 30 random samples of size 5 each. In the matrix given below each row denotes a sample of size 5.
# First generating a arbitrary matrix and then assign the values of samples
> matr = matrix(c(1,2),nrow = 30,ncol = 5,byrow = T)
> for( i in 1:30){
+ y=sample(x,size = 5,replace = F)
+ for (j in 1:5){
+ matr[i,j]=y[j]
+ }
+ }
> matr
[,1] [,2] [,3] [,4] [,5]
[1,] 1 5 4 1 3
[2,] 5 4 1 4 1
[3,] 1 5 5 1 4
[4,] 4 5 3 5 4
[5,] 5 5 1 1 5
[6,] 1 1 5 5 3
[7,] 1 1 5 1 5
[8,] 1 3 1 4 5
[9,] 5 3 1 5 4
[10,] 4 5 5 1 4
[11,] 3 1 5 1 5
[12,] 3 1 5...