Question

In: Statistics and Probability

R programming a. obtain the dataset ChickWeight b. obtain the mean weight at 16 days for...

R programming
a. obtain the dataset ChickWeight
b. obtain the mean weight at 16 days for all chicks on that diet

Solutions

Expert Solution

# The R code is :

A=data.frame(ChickWeight) #Attaching the dataset ChickWeight in a dataframe named A
A
wt=A$weight[Time==16] #Inserting the weights of each chick at the 16th day
wt
mean(wt) #calculating the mean of all those weights which give the overall mean weight at 16 days for all chicks on that diet

The output is attached below:


Related Solutions

what does the following mean in R programming: %d
what does the following mean in R programming: %d
Using dataset "PlantGrowth" in R (r code) Construct a 95% confidence interval for the true mean...
Using dataset "PlantGrowth" in R (r code) Construct a 95% confidence interval for the true mean weight. Interpret the confidence interval in in the context of the problem.
The dataset "chickwts" you can access in R Weight    Feed 1 179 horsebean 2 160...
The dataset "chickwts" you can access in R Weight    Feed 1 179 horsebean 2 160 horsebean 3 136 horsebean 4 227 horsebean 5 217   horsebean 6 168   horsebean Let X1, .... X6 be random variables for the 6 different feedtypes. Let xj =∑ xij /n and s2 =∑ (xij -xj )^2 / n be estimators for the mean and variance of the chickweights for each of the feedtypes. Find the values of thee estimators for each. Assume these random...
Two species of rat were grown under controlled conditions for 16 days and the following weight...
Two species of rat were grown under controlled conditions for 16 days and the following weight gains (in grams) were obtained. If the number is negative, it means the rat lost weight. (calculate everything for this problem - do not use built in excel formulas) Species A -23 4 0 -18 7 32 -4 -2 Species B 21 38 20 24 24 58 16 -16 14 28 -5 25 a) Calculate a 95% confidence interval for each species mean b)...
Problems 16-18: Lengths of pregnancies are normally distributed with a mean of 268 days and a...
Problems 16-18: Lengths of pregnancies are normally distributed with a mean of 268 days and a standard deviation of 15 days.(Use the z-table). What percentage of pregnancies last less than 250 days? What percentage of pregnancies last more than 280 days? If 60 pregnant women were randomly selected, how likely is it that their mean pregnancy length is greater than 275 days? Your answer:
Programming in R: Some days Zach finds that he has nothing better to do than sit...
Programming in R: Some days Zach finds that he has nothing better to do than sit on a porch and watch cars pass him by. On average, he sees about 15 cars pass in a single day. Simulate an entire year of Zach’s car-watching pastime (assume every month is 30 days long), compute the mean for each month, and generate a histogram of the means. Does the distribution of the means look normal? Why or why not?
Using the R built-in data set called Chick Weight, we want to compare the mean weight...
Using the R built-in data set called Chick Weight, we want to compare the mean weight across the different types of Diet. IMPORTANT: We only want to compare chicks at the final value of Time, 21. In this problem, use ?? = 0.05. Make a boxplot to compare weight across the different types of Diet. Based on the boxplot, describe any differences (or lack of differences) you see. Run an ANOVA to compare weight across the different types of Diet....
a) A random sample of 19 cans of peach halves has a mean weight of 16...
a) A random sample of 19 cans of peach halves has a mean weight of 16 ounces and standard deviation of 0.4 ounces. A)Find a 95 % confidence interval for a true standard deviation of the weights of all cans of peach halves. B) What would be the confidence interval for a true standard deviation if the sample size was 47 ? Confidence interval: ( , )
A sample of 16 toy dolls had a mean weight of 71.5 and a standard deviation...
A sample of 16 toy dolls had a mean weight of 71.5 and a standard deviation of 12 pounds, respectively. Assuming normality, construct 95% confidence interval for the population mean weight, μ.
From a random sample of 16 bags of chips, sample mean weight is 500 grams and...
From a random sample of 16 bags of chips, sample mean weight is 500 grams and sample standard deviation is 3 grams. Assume that the population distribution is approximately normal. Answer the following questions 1 and 2. 1. Construct a 95% confidence interval to estimate the population mean weight. (i) State the assumptions, (ii) show your work and (iii) interpret the result in context of the problem. 2.  Suppose that you decide to collect a bigger sample to be more accurate....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT