1 / 2

Exercise 1

Exercise 1. In the ISwR data set alkfos , do a PCA of the placebo and Tamoxifen groups separately, then together. Plot the first two principal components of the whole group with color coding for the treatment and control subjects.

mariko
Download Presentation

Exercise 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Exercise 1 • In the ISwR data set alkfos, do a PCA of the placebo and Tamoxifen groups separately, then together. Plot the first two principal components of the whole group with color coding for the treatment and control subjects. • Conduct a linear discriminant analysis of the two groups using the 7 variables. How well can you predict the treatment? Is this the usual kind of analysis you would see? • Use logistic regression to predict the group based on the measurements. Compare the in-sample error rates. • Use cross-validation with repeated training subsamples of 38/43 and test sets of size 5/43. What can you now conclude about the two methods? SPH 247 Statistical Analysis of Laboratory Data

  2. Exercise 2 • In the ISwR data set alkfos, cluster the data based on the 7 measurements using hclust(), kmeans(), and Mclust(). • Compare the 2-group clustering with the placebo/Tamoxifen classification. SPH 247 Statistical Analysis of Laboratory Data

More Related