Reference no: EM132851403
Vocabulary and R functions
Enter the following command in R to read a simple help page about the table() command (this is for your information, you do not need to show the output):
Now enter the following command and describe the output of the table() command. What does the first row of numbers in table() output represent? What does the second row of output represent?
x <- c(5, 8, 4, 1, 5, 6, 5, 9, 4, 2, 5, 7, 5, 3, 6, 4, 5, 3, 7, 6)
table(x)
[optional: You can test your theory by altering the numbers and rerunning the table command.]
Task
a) f you were a teacher and had 30 students in your class and wanted to know the class average on the first quiz, would you use a parameter or a statistic? Why?
b) If you wanted to know how many people in your country recognize the name of your new company, would you use a parameter or a statistic? Why?