Write a code in R PROGRAM to solve this 3) The red-tailed tropic bird, Phaethon
ID: 3881363 • Letter: W
Question
Write a code in R PROGRAM to solve this
3) The red-tailed tropic bird, Phaethon rubricauda, is an extremely rare sea bird that nests on several islands of the Queensland coast of Australia. As part of a conservation effort to manage these endangered birds, every nesting pair was measured and weighed. Below are the body weights of these birds (in kg). Female 2.45 2.57 2.81 2.37 2.01 2.50 2.32 Male 2.86 2.65 2.75 2.60 2.30 2.49 2.84 (a) Determine the following descriptive characteristics for the weights of the females: mean, variance, and standard deviation. Is this a sample or population? Again, pay attention to number of decimal places and appropriate units. (b) Determine the mean, variance, and standard deviation for the male weights. (c) Comment on the differences or similarities between the two data sets.Explanation / Answer
body.weights= matrix(c(2.45,2.57,2.81,2.37,2.01,2.50,2.32,2.86,2.65,2.75,2.60,2.30,2.49,2.84),nrow=2,ncol=7,byrow=TRUE)
dimnames(body.weights) = list(c("Female", "Male"))
avg <- rep(NA, length(body.weights[, 1]))
for (i in 1:length(body.weights[, 1])) {
avg[i] = mean(body.weights[i, 1:7], na.rm = TRUE)
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.