For the US crime data of Example 13.4.2, carry out the PCA for the covariates and then

Question:

For the US crime data of Example 13.4.2, carry out the PCA for the covariates and then perform the regression analysis on the PC scores. Investigate if the multicollinearity problem persists in the fitted regression model based on the PC scores.


Data from in Example 13.4.2

Consider the girder experiment, which has 9 blocks and 4 treatments. The aim of the experiment is to find if the shear strength depends on the blocks, varying from S1.1 to S4.2, or on the method of preparation: Aarau, Karisruhe, Lehigh, and Cardiff. A bit of data preparation is needed from the csv file, and post the preparation, the ANOVA table is obtained using the aov function in R. Recollect the analysis of this dataset in Example 4.5.3 of Section 4.5 through themedian polish algorithm. The data arrangement is slightly different in the block design model.


After reading the data, the names of the variables have been curtailed to ensure the output of model. matrix displays all the variables in a single line. The codes rep(girder$Girder,each=4) and rep(colnames(girder)[2:5],9) with as. character ensures that the block design is clearly told that these two inputs are factors. The vector ss now contains the shear strength for each combination of the method of preparation and the girder. Finally, aov(ss gf + mf, data=girdernew) sets up the required block design in R. The interpretation is as follows. The large p-value of 0.172 with girderf suggests that the blocks have insignificant effect on the output. However, the method of preparation is found to have significant effects on the strength of the material.

As seen in Models 13.2, 13.10, etc., these linear models need to be investigated for model assumptions and other regression diagnostics too. Can it be said without loss of generality that leverages are not a concern in DOE since all the covariate values are fixed? Now, we consider an example from Montgomery (2005), wherein we will investigate issues related to model adequacy.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

A Course In Statistics With R

ISBN: 9781119152729

1st Edition

Authors: Prabhanjan N. Tattar, Suresh Ramaiah, B. G. Manjunath

Question Posted: