Question

In: Statistics and Probability

Work these in R. Using library(resampledata) and the dataset Spruce to conduct a test to see...

Work these in R.
Using library(resampledata) and the dataset Spruce to conduct a test to see if the mean difference in how much the seedling grew (in height) over the course of the study under these two treatments are significantly different from each other. Answer the following:
a) Set up a hypothesis using appropriate notation.
b)Find the value of the observed test statistic using R.
c)Compute the P-value of the observed test statistic using a permutation distribution with N= 10^5-1.

If possible please use comments in your code to make it easier to study.

Thanks a lot!

Solutions

Expert Solution


Related Solutions

Solve using R. You will need library(resampledata) and the dataset FlightDelays. Conduct a hypothesis test to...
Solve using R. You will need library(resampledata) and the dataset FlightDelays. Conduct a hypothesis test to see whether there is a difference in the variances of flight delay length between the two airlines. 1) Set a hypothesis for this test using appropriate notation 2) Using R, find the value of the observed test statistic 3) Using R, compute the P-value of the observed test statistic using a permutation distribution with N=10^5-1 resamples. If possible use comments so that it is...
The R library faraway contains the pima dataset. We will fit a model with test as...
The R library faraway contains the pima dataset. We will fit a model with test as a response and bmi (only) as a predictor to see the relationship between the odds of a patient showing signs of diabetes and his/her bmi. The odds o and probability p are related by: o = p/(1-p), p = o(1+o) Using the GLM function: a. Please estimate the amount of increase in the log(odds) when the bmi increases by 10. b. Give a 95%...
Using the dataset below, test to see if there is a significant association between size of...
Using the dataset below, test to see if there is a significant association between size of the houses sold and the state where they are sold (a) State what test statistic would you use, calculate the test statistic, and the p-value and your conclusions (b) Does the data set meet all the conditions for the testing? Please explain Note: Calculate test statistic by hand or load StatKey Chi-Sq Test for Association and use the Homes For Sale (Size by State)...
Using the "mammals" dataset from the "MASS" library in R: body brain Arctic fox 3.385 44.50...
Using the "mammals" dataset from the "MASS" library in R: body brain Arctic fox 3.385 44.50 Owl monkey 0.480 15.50 Mountain beaver 1.350 8.10 Cow 465.000 423.00 Grey wolf 36.330 119.50 Goat 27.660 115.00 Roe deer 14.830 98.20 Guinea pig 1.040 5.50 Verbet 4.190 58.00 Chinchilla 0.425 6.40 Ground squirrel 0.101 4.00 Arctic ground squirrel 0.920 5.70 African giant pouched rat 1.000 6.60 Lesser short-tailed shrew 0.005 0.14 Star-nosed mole 0.060 1.00 Nine-banded armadillo 3.500 10.80 Tree hyrax 2.000 12.30...
ANSWER USING R CODE Using the dataset 'LakeHuron' which is a built in R dataset describing...
ANSWER USING R CODE Using the dataset 'LakeHuron' which is a built in R dataset describing the level in feet of Lake Huron from 1872- 1972. To assign the values into an ordinary vector,x, we can do the following 'x <- as.vector(LakeHuron)'. From there, we can access the data easily. Assume the values in X are a random sample from a normal population with distribution X. Also assume the X has an unknown mean and unknown standard deviation. With this...
*Using the mpg column in the mtcars data conduct a hypothesis test to see if the...
*Using the mpg column in the mtcars data conduct a hypothesis test to see if the true mean miles per gallon of cars is greater than 22. Use an alpha level of .1* Please make sure you solve in R-studio. Solving without giving me R-codes will not help me. It would also help if you write a brief explanation of what you did. Thanks in advance!
Using R, conduct an ANOVA to see if there are differences in weight between two groups...
Using R, conduct an ANOVA to see if there are differences in weight between two groups of monkeys. What is null hypothesis conclusion with evidence. Conduct a post-hoc MCP (use TukeyHSD) to see which means are different. What do the outputs lwr and upr mean? The numbers are monkey group 1= 9.7, 9.2, 9.5, 9.5, 10.9, 9.8, 8.7, 7.9, 9.8, 9, 10.5, 8.9, 10, 8.9, 6.8, 9.3, 8.2, 8.5, 9.4, 10.5 Monkey group 2= 8.1, 7.8, 7.6, 9.9, 8.1, 9.1,...
Solve it by R Use the “d_logret_6stocks” dataset to answer the questions. Test by using α=...
Solve it by R Use the “d_logret_6stocks” dataset to answer the questions. Test by using α= .01. (General Motor: GenMotor). (1) Regress the return of General Motor on the returns of Citigroup (with intercept). Report the estimated coefficients. Is there any evidence to show strong linear relationship between these two variables at significance level 5%? (2) Suppose we “know” the return of Citigroup tomorrow is 0.05, what is the predicted return of General Motor tomorrow? (3) Compute the correlation of...
Fitting a linear model using R a. Read the Toluca.txt dataset into R (this dataset can...
Fitting a linear model using R a. Read the Toluca.txt dataset into R (this dataset can be found on Canvas). Now fit a simple linear regression model with X = lotSize and Y = workHrs. Summarize the output from the model: the least square estimators, their standard errors, and corresponding p-values. b. Draw the scatterplot of Y versus X and add the least squares line to the scatterplot. c. Obtain the fitted values ˆyi and residuals ei . Print the...
In R: Consider dataset “juul” from library “ISwR”. (juul is a built in data set) Are...
In R: Consider dataset “juul” from library “ISwR”. (juul is a built in data set) Are the means of igf1 equal among tanner groups at 5% level? Please use the six step process to test statistical hypotheses for this research problem. Note: You need to convert tanner from numeric to factor type and ignore all the NAs.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT