x <- c(1,5,8,9)
x[1] 1 5 8 9
Please complete the following problems as practice for Exam 2. Note that you may need to load specific packages from the previous exercises to get your code to work.
All questions must be answered in full sentences.
Example answers: For your conclusion, answers should look like this:
Consider this scenario: You have discovered a never-before-documented population of minnow in the Kearney Canal near campus. During your first sampling trip, you notice that the total length (i.e., measured from the tip of the snout to the very tip of the tail) of the fish you measure appear to be smaller than the average total length of the species as recorded among all known individuals across their range. The mean total length noted in one publication is 85.00 mm with a standard deviation of 4.50. Below are your data from 20 minnows that you captured during your first sampling trip to the Kearney Canal:
| Fish ID | Length (mm) |
|---|---|
| 1 | 89.58 |
| 2 | 75.44 |
| 3 | 86.86 |
| 4 | 74.71 |
| 5 | 69.70 |
| 6 | 100.34 |
| 7 | 73.70 |
| 8 | 69.56 |
| 9 | 96.24 |
| 10 | 79.35 |
| 11 | 61.37 |
| 12 | 62.82 |
| 13 | 95.45 |
| 14 | 98.71 |
| 15 | 100.34 |
| 16 | 57.57 |
| 17 | 70.54 |
| 18 | 78.65 |
| 19 | 65.39 |
| 20 | 65.57 |
NOTE: you will have to create the numeric object for this problem. use c to link things together; e.g.:
x <- c(1,5,8,9)
x[1] 1 5 8 9
fish ID and length) – nominal, ordinal, interval, or ratio? Provide your answer along with a brief justification.length variable, rounding to the appropriate number of significant digits in all answers. Be sure to provide a written description of your answers as well as the code output.
length data. Provide an interpretation of these values.length data:
length across all populations of this minnow are \(\mu = 85.00\) and \(\sigma = 4.50\).
Be sure to answer all questions in full sentences!
You are curious about how much time your classmates spend on Canvas for BIOL305. Let’s say you get the following data for the amount of time folks spend on Canvas:
time.hrs <- c(19.65, 69.29, 6.83, 5.50, 17.98,
19.89, 8.52, 71.37, 12.62, 4.62,
3.00, 5.69, 10.79, 6.59, 32.56,
15.72, 3.67, 10.04, 5.45, 3.69,
20.17, 12.99, 1.56, 2.40, 55.20)
student <- 1:length(time.hrs)
time_on_canvas <- cbind(student, time.hrs) |>
as.data.frame() |>
mutate(time.hrs = as.numeric(time.hrs)) |>
mutate(student = as.numeric(student))
head(time_on_canvas) student time.hrs
1 1 19.65
2 2 69.29
3 3 6.83
4 4 5.50
5 5 17.98
6 6 19.89
student] and time spent in hours [time.hrs]) – nominal, ordinal, interval, or ratio? Provide your answer along with a brief justification.time.hrs variable, rounding to the appropriate number of significant digits in all answers. Be sure to provide a written description of your answers as well as the code output.
length data. Provide an interpretation of these values.length data:
time.hrs data (use the command log1p). Don’t forget to back-transform your confidence intervals using expm1.