The code is perfectly fine here. But the conclusions are needed in each part.
Both for linear model and second degree polynomial model fitting, we should comment on our findings in the following way :
(C) The ANOVA table give the conclusions in such a way that :
If the p value <= .05, we should reject the null hypothesis at level 0.05.
And p value > .05 implies we should accept the null hypothesis at level 0.05.
(d) In Shapiro Wilks normality test, if the p value comes out to be less than or equal to 0.05 , we conclude that the errors are not from Normal distribution.
If p value > 0.05, we conclude that the errors are Normally distributed.
(e) From the scatterplot, if the data goes more or less closely to the estimated regression curve for second degree polynomial , then fitting second degree polynomial to the data will be the best option.
(f) on fitting both linear regression and second degree polynomial regression we get adjusted R square values.
The one with the greater adjusted R square value will be better to fit to the given data..
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 data <- read.csv("SweetPotatoFirmness.csv",header=TRUE, sep=",") head(data) str(data)...
Please I want someone help me to solve this question a,b,c,d,e I’m not sure about my solution This is the data # Set directory to data folder setwd("C:data") # getwd() # Read data from csv file data <- read.csv("SweetPotatoFirmness.csv",header=TRUE, sep=",") head(data) 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...
I am trying to plot a time series model using R. So far I have the following code, but I'm getting an error located at the very bottom. Can you please explain what I'm doing wrong, and what I should be doing instead in order to avoid the error? As far as the data is concerned, the first column displays time (hour-by-hour) across 20 days, giving 504 rows of data and the six columns thereafter display the bike demand/usage at...
**Just need help with one I got wrong** Thank you Budget Analysis I: A budget is an expression of management's expectations and goals concerning future revenues and costs. To increase their effectiveness, many budgets are flexible, including allowances for the effect of variation in uncontrolled variables. For example, the costs and revenues of many production plants are greatly affected by the number of units produced by the plant during the budget period, and this may be beyond a plant manager's...