Final project presentation: Variable selection app.

Mikko Junttila
November 7th, 2017

Oulu, Finland

Variable Selection App.

Compare correlations of variables in the Chatterjee-Price Attitude Data

  • application shows scatter plot of the two chosen variables
  • application calculates and presents correlation coeffient of the chosen variables

Use correlation data to select three variables to explain variability in variable rating

  • application fits a linear regression model: (lm(rating ~ chosen variables))
  • application reports R2 and adjusted R2 values of the model

The Chatterjee-Price Attitude Data

  • survey of clerical employees of large financial organization
  • data from questionnaires of approximately 35 employees for each of 30 departments
  • numbers give percent proportion of favourable responses to seven questions in each department
  • data frame with 30 observations on 7 variables

Source

Chatterjee, S. and Price, B. (1977) Regression Analysis by Example. New York: Wiley. (Section 3.7, p.68ff of 2nd ed.(1991).)

First row of the Chatterjee-Price Attitude Data

  rating complaints privileges learning raises critical advance
1     43         51         30       39     61       92      45

Variable Description
Y rating Over all rating
X[1] complaints Handling of employee complaints
X[2] privileges Does not allow special privileges
X[3] learning Opportunity to learn
X[4] raises Raises based on performance
X[5] critical Too critical
X[6] advance Advancement

Example plot

Correlation plot between variables rating and complaints

plot of chunk unnamed-chunk-2