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

Using R Studio. The dataset weightloss.txt presents data for the weight loss of a compound for...
Using R Studio. The dataset weightloss.txt presents data for the weight loss of a compound for different amounts of time the compound was exposed to the air. Additional information was also available on the humidity of the environment during exposure. The relative humidity has been coded as A= 20%, B= 30% and C=40% humidity and the dummy variables x2 and x3 have been formed to code humidity accordingly. a)Determine and overall simple LSRL model for predicting weight based off of...
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.
what does the following mean in R programming: %d
what does the following mean in R programming: %d
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:
sleep data analysis: a) What is the dataset “sleep” in R? and its description? b) Draw...
sleep data analysis: a) What is the dataset “sleep” in R? and its description? b) Draw boxplots for two drug groups in ONE plot. c) Set up a hypothesis (null and alternative) for testing whether there exists an effect difference between two drugs. Using both words and symbols for hypothesis settings. (Hint: this is a paired sample test, rather than a general two sample t test.) d) Use an appropriate formula to calculate the test statistic and find its p-value...
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, μ.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT