The questions below relate to the work done in Lab 4. Give all numeric answers correct to 2 decimal places.
- From Exercise 1 (b), set the seed to 12345 and get a simple random sample of 10. How many males are in your sample?
- From Exercise 1 (c) and using your simple random sample from above, what is the mean of the TV variable?
- From Exercise 2 (a), set the seed to 12345 and get a systematic sample with an interval of 4. What is the start value?
- From Exercise 2 (b) and using your systematic sample from above, what is the mean of the TV variable?
- From Exercise 2 (c) and using your systematic sample from above, what proportion of the sample is Female?
- From Exercise 3 (a), when you filter the data and obtain the female stratum, what is the mean of the TV variable?
- From Exercise 4 (a), how many levels are in the new variable
sex_seat_class
?