In: Statistics and Probability
X1=sample(x, size, replace = TRUE, prob = NULL), X2=sample(x, size, replace = TRUE, prob = NULL).
Then run this code t.test(X1,X2) to get comparison between two groups.
Question) 3. Create 4 different statistical descriptors of your data (Mean, Median, Standard Dev. and Range), Are your two groups different, or similar? Use the statistics you created in number 3 as a basis of your decision?
CLASS DATA Height in inches:
62,73,69,67,66,63,60,71,67,61,62,64,62,66,68,63,64,74,64,66,74 64 68,66,61,68,62,73,73,63,61,67,73,65,67,65,69,73,64,60,70,62,63,66 64,70,70,66,72,65,63,71,69,74,65,67,74,68,73,59,67,65,70,66,74 ,64 64,69,63,68,63,69,66,65,66,62,72,71,63,60,83,69.5,65,68,68,66,59 67,65,65,65,65,68,73,74,69,65,74,66,67,62,62,73,76,65,65,63 68,63,59 ,72,71,65,66,72,64,63,68,62,64,67,64,74,70,70,66,71 69,67,67,65,63,74,66,72,65,68,62,69,62,72,70,71,64,61,75,77 71,73,72,69,67,65,70,61,67,58,62,60,61,60,72,63,72,65,73,65,66,65,69,68,67 63,71,60,64,72,74,63,63,70,66,74,72,63,64,65,76,60,61,70,67,72,60,67,73,66,72,65,65,70,61,65 ,71,73 ,73,74,76,66,69,62 65,65,68,70,61,63,65,65,75,63,74,71,72,78,73,73,65,71,59,73,68,60,70,62,72,66,74,61,64,70,67,60,60,62,64,69,69,64,66,66,74,65,72,76,62,73,77,71,75, 70