Question

In: Statistics and Probability

Need R codes to compile and plots , no hand written. Step-1: Type the data in...

Need R codes to compile and plots , no hand written.

Step-1: Type the data in R

Step-2: Perform Least-Squares regression

Step-3: Make a normal Probability Plot using rstudent residuals

Step-4: Plotting residuals versus predicted response yhat

Step-5: Plotting Residuals versus each regressor.

Step-6: Partial regression plots of residuals vs. regressors

Step-7: Partial regression plots of residuals vs. regressors

data:  (p.555 y, x1 and x5).

y <- c(271.8, 264,238.8,230.7,251.6,257.9,263.9,266.5,229.1,239.3,258,
257.6,267.3,267,259.6,240.4,227.2,196,278.7,272.3,267.4,254.5,224.7,
181.5,227.5,253.6,263,265.8,263.8)

x1 <- c(783.35, 748.45,684.45,827.8,860.45,875.15,909.45,905.55,756,769.35,793.5,801.65,819.65,808.55,774.95,711.85,694.85,638.1,774.55,757.9,753.35,704.7,
666.8,568.55,653.1,704.05,709.6,726.9,697.15)

x5 <- c(13.2, 14.11,15.68,10.53,11,11.31,11.96,12.58,10.66,10.85,11.41,11.91,12.85,13.58,14.21,15.56,15.83,16.41,13.1,13.63,14.51,15.38,
16.1,16.73,10.58,11.28,11.91,12.65,14.06)

Solutions

Expert Solution

Step-1: Type the data in R

> y <- c(271.8, 264,238.8,230.7,251.6,257.9,263.9,266.5,229.1,239.3,258,257.6,267.3,267,259.6,240.4,227.2,196,278.7,272.3,267.4,254.5,224.7,181.5,227.5,253.6,263,265.8,263.8)

>

> x1 <- c(783.35,748.45,684.45,827.8,860.45,875.15,909.45,905.55,756,769.35,793.5,801.65,819.65,808.55,774.95,711.85,694.85,638.1,774.55,757.9,753.35,704.7,666.8,568.55,653.1,704.05,709.6,726.9,697.15)

>

> x5 <- c(13.2,14.11,15.68,10.53,11,11.31,11.96,12.58,10.66,10.85,11.41,11.91,12.85,13.58,14.21,15.56,15.83,16.41,13.1,13.63,14.51,15.38,16.1,16.73,10.58,11.28,11.91,12.65,14.06)

Step-3: Make a normal Probability Plot using studentized residuals

> plot(model,which=2)

Step-4: Plotting residuals versus predicted response yhat

> plot(model,which=1)

Step-5: Plotting Residuals versus each regressor

> plot(x1,model$res)

> plot(x5,model$res)

Step-6: Partial regression plots of residuals vs. regressors

> library(asbio)

> partial.resid.plot(model)


Related Solutions

Regression Analysis/Need R code/Step By Step Explanation/No Hand Written Regression: A) Provide a 95% Confidence interval...
Regression Analysis/Need R code/Step By Step Explanation/No Hand Written Regression: A) Provide a 95% Confidence interval for each of the estimated parameters B ) Use Hypothesis Testing to test the significance of Regression and Residual Analysis C) Perform Lack of fit test Apply corresponding transformation to correct model inadequacies if any. D) Perform Multicollinearity and Validate your model Accordingly. We seek a model of the form # # B = A0 * X0 + A1 * X1 + A2 *...
I need step wise hand written solution with formula as I have answer of following question:-...
I need step wise hand written solution with formula as I have answer of following question:- The Provincial Bank lent $20 000 to the owner of the Purple Pelican on April 1, 2012, for commercial improvements. The loan was secured by a demand note subject to a variable rate of interest. This rate was 7% on April 1. The rate of interest was raised to 9% effective August 1 and reduced to 8% effective November 1. Partial payments, applied to the...
Stet by step in R and attach R file and R codes too - Thanks Use...
Stet by step in R and attach R file and R codes too - Thanks Use one of the real-world example data sets from R (not previously used in the R practice assignment) or a dataset you have found, and at least two of the tests and R functions covered in the practice assignment to conduct a hypothesis test then report your findings and give proper conclusion(s). Use the following supporting materials for R syntax, data sets and tools, along...
USE R AND SHOW CODES!! 1.a. The following data represent the birth weights of siblings born...
USE R AND SHOW CODES!! 1.a. The following data represent the birth weights of siblings born to six different mothers Data Birth weight Mother Child 1 Child 2 Child 3 Child 4 1 6.4 6.9 6.7 7.1 2 8.5 7.8 7.8 8.3 3 7.6 8.7 9.9 8.2 4 5.3 6.7 7.5 6.4 5 6.2 5.6 6.4 5.5 6 7 7.8 8.6 6.6 Use an appropriate method to test if there is a significant difference in the birth weight of siblings....
Need step by step solutions and calculations The following is a set of data from a...
Need step by step solutions and calculations The following is a set of data from a sample of 11 items X: 7 5 8 3 6 0 2 4 9 5 8 Y: 1 5 4 9 8 0 6 2 7 5 4 a. Construct a scatter plot using the sample data. b. Calculate the mean, median variance and coefficient of variation and z-scores for X. c. Determine the outliers. d. Determine the quartiles of X. e. Construct a...
Please follow the directions and answer all questions properly. Type the answers please. NO hand written...
Please follow the directions and answer all questions properly. Type the answers please. NO hand written answer. This is a Marketing class. Thanks Please write no more than 100 words for each question. The questions are about fast food chain “Chick-Fil-A. These questions were asked by my professor. Please make sure that answers are good. I would really appreciate. Thanks again. I’m having a hard time understanding differences among needs, wants and demands of “Chick-Fil-A” customers. How would you explain...
NEED TYPE WRITTEN ANSWER OF BOTH QUESTION 1.Explain three of the psychological factors that can lead...
NEED TYPE WRITTEN ANSWER OF BOTH QUESTION 1.Explain three of the psychological factors that can lead to altered health states. 2.Describe two behaviors that demonstrate accountable and responsible nursing practice
Please type your answer not hand written Q3: To what extent did the U.S. led Western...
Please type your answer not hand written Q3: To what extent did the U.S. led Western media contribute to the dismantling of the Soviet Union?
Please answer below question with full detailed explanation in type written, no hand writing please. What...
Please answer below question with full detailed explanation in type written, no hand writing please. What is the basic difference between synchronous machine and induction machine? Why induction motor is more common as compared to induction generator?
1. Using R, construct time series (line) plots for both stock prices and return series. R...
1. Using R, construct time series (line) plots for both stock prices and return series. R functions ts.plot or plot can create the plot. Describe the patterns and compare the plots. 2. Based on the return series, can we claim that the mean Amazon return series is higher than that of Google? a. What would be an appropriate test of the claim above? Explain. b. Write the null and alternative hypotheses. c. Using R, perform the test. d. Write the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT