Site icon Tutor Bin

NYU Regression Method Exercises

NYU Regression Method Exercises

Description

#Complete this HW exercise by performing the following analyses after reading in the data in B1.csv.
#You need the faraway, olsrr, and car libraries to complete this exercise.
#Regress y ~ x2+x7+x8
#a) Generate output using the summary and anova statements.

#b) generate a Q-Q plot
#qqnorm(residuals(lmod),ylab=”Residuals”,main=”Q-Q plot”)
#qqline(residuals(lmod))

#c) Construct plots of the residuals versus each of the regressor variables. Do these plots imply
#that the regressor is correctly specified and whether powers of X should be added to the model
#plot(x2,residuals(lmod),xlab=”x2″,ylab=”Residuals”)
#abline(h=0)

#d) Construct partial regression plots for the variables in lmod
#R command to execute: avPlots(lmod,print_plot = TRUE) #partial regression plots from the car package 

#e) Plot  the  studentized  residuals  and  the  R-student  residuals  from lmod using the commands below
#ols_plot_resid_stand(lmod)$data  #studentized residuals
#ols_plot_resid_stud(lmod)$data   #R-studentized residuals

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Exit mobile version