# Actually other expert help me with a solution for hw1 (thanks a lot for him). so...

###### Question:

actually other expert help me with a solution for hw1 (thanks a lot for him). so , if you look just the question that I post you can see it or just write the first line of the question , thank you for your interest in my question . I post the code that I used at first homework

 Set directory to data folder

setwd("C:data")

getwd()

 Read data from csv file

str(data)

scatterplot of independent and dependent variables

plot(data$pectin,data$firmness,xlab="Pectin, %",ylab="Firmness")

par(mfrow = c(2, 2))  Split the plotting panel into a 2 x 2 grid

model <- lm(firmness ~ pectin , data=data)

summary(model)

plot(model)

par(mfrow=c(1,1))

Residual Plot

data$residuals <- resid(model) data$predict <- predict(model)

plot(data$predict,data$residuals,xlab="Fitted Values",ylab="Residuals")

 Estimated regression line and scatterplot of data

plot(data$pectin,data$firmness,xlab="Pectin, %", ylab="Firmness",

ylim=c(45,75),xlim=c(0,3),main="Simple Linear Regression",

pch=19,cex=1.5)

lines(sort(data$pectin),fitted(model)[order(data$pectin)], col="blue", type="l")

A food processor was receiving complaints from its customers about the firmness of its canned sweet potatoes. The firm's research scientist decided to gather data on their product to determine if adding pectin to the sweet potatoes might result in a product with a more desirable firmness. The scientist measured firmness on canned sweet potatoes at various pectin concentrations. Before testing, the cans were sealed and placed in a 25 environment for 30 days. Pectin Concentration Fimness Reading 0% 1% 2% 3% 6.90, 50.20, 51.3056.48, 59.34, 62.9767.91, 70.78, 73.6768.13. 70.85, 72.34 Let denote the pectin concentration of the sweet potatoes in a can and denote the firmness reading following the 30 days of storage at 25. Question 1: Simple Linear Regression (continued from HW1) (a)Interpret the slope parameter estimated in HW 1 (b)Perform regression diagnostics and comment on the validity of each assumption. This includes the four diagnostic plots and the Shapiro-Wilk test. For Shapiro-Wilk, give hypotheses, result from R, use to make a decision about the null hypothesis, and give a conclusion.
(b) Perform regression diagnostics and comment on the validity of each assumption. This includes the four diagnostic plots and the Shapiro-Wilk test. For Shapiro-Wilk, give hypotheses, result from R use a0.01 to make a decision about the null hypothesis, and give a conclusion. (c) Complete the following analysis of variance table for this model. Source df SumSq Mean SqF value PrF Total

#### Similar Solved Questions

##### I will give rating for the complete answer ? Derive the law of the wall and...
I will give rating for the complete answer ? Derive the law of the wall and explain its applicability in a typical turbulent boundary layer. (15 marks)...
##### Uume II 70 questions 70 Points Time Remaining: Not Timed Save Progress Last Saved: 2:29 PM...
Uume II 70 questions 70 Points Time Remaining: Not Timed Save Progress Last Saved: 2:29 PM other things being equal, the equilibrium quantity of gasoline must fall. 8) If the price elasticity of supply of doodads equals 0.50 and the price rises by 3 percent, then the quantity supplied of doodads wil...
##### How could each of the following compounds be prepared from cyclohexanone? Problem 17.16 Part A Drag...
How could each of the following compounds be prepared from cyclohexanone? Problem 17.16 Part A Drag the appropriate labels to their respective targets. Reset Help 1. LDA THF 1. LDA/THF 1. LDA THF Part B Drag the appropriate labels to their respective targets. Reset Help 1. LDA THF Br 1. LDA THF 18 ...
##### SignmentMain.do?invoker nts&takeAssignmentSessionLocator-assignment-take&inprogress assignme -f Updates Ready to Install Do you want to restart to install thes...
signmentMain.do?invoker nts&takeAssignmentSessionLocator-assignment-take&inprogress assignme -f Updates Ready to Install Do you want to restart to install thes updates now or try tonight? Instructions ﹀ 一 一一 Instructions After closing the accounts on July 1, prior...
##### D d h. h; f m 0 12 6 2. -1 4 -0.5 I 11 6.29...
d d h. h; f m 0 12 6 2. -1 4 -0.5 I 11 6.29 2 -1.14 4 -0.57 10 6.67 2. -1.33 4 -0.66 9 7.2 2. -1.6 4 -0.8 8 8 2 -2 4 -1 7 9.33 -2.67 4 -1.33 N 6 12 2 -4 4 -2 7.9 2 -2 4 average -1 1. How did the image distance change as the object distance was decreased? 2. How did the height of the image change as ...
##### Discuss all of the baseline assessments necessary before initiation of medication in children and adolescents.
Discuss all of the baseline assessments necessary before initiation of medication in children and adolescents....
##### Pick a healthcare policy you have heard about in the media, and answer the following questions. Be sure to read and res...
Pick a healthcare policy you have heard about in the media, and answer the following questions. Be sure to read and respond to your classmates' answers. What is the policy problem the policy is trying to address? What is the solution the policy is attempting to resolve? What is the intention of ...
##### What is the pH of a buffered solution saturated with hydrogensulfide ([H2S] = 0.10 M)...
What is the pH of a buffered solution saturated with hydrogen sulfide ([H2S] = 0.10 M) at 25°C if PbS (s) is precipitated, leaving [Pb2+] = 1.0 × 10–7 M, without precipitating any MnS (s)? The original solution is 0.030 M in both Pb2+ (aq) and Mn2+ (aq). Ksp = 8.0 × 10–28...
##### In 2016, United Kingdom voted to leave the European Union. On Marsh 29, 2019 the Brexit AKA seces...
In 2016, United Kingdom voted to leave the European Union. On Marsh 29, 2019 the Brexit AKA secession from the Union is schedule to take place. The referendum results and the approaching date of the secession have negatively affected business environment in the UK leading to a growth rate slowdown i...
##### What is the equation of the line perpendicular to y=-1/15x  that passes through  (-1,4) ?
What is the equation of the line perpendicular to y=-1/15x  that passes through  (-1,4) #?...