Professional Documents
Culture Documents
M/19101")
> getwd()
[1] "C:/Users/Rakesh/Desktop/DAT-Rakesh.M/19101"
> install.packages("readxl")
C:\Users\Rakesh\AppData\Local\Temp\RtmpKwqkq2\downloaded_packages
> library(readxl)
> install.packages("psych")
C:\Users\Rakesh\AppData\Local\Temp\RtmpKwqkq2\downloaded_packages
> library(psych)
> install.packages("car")
C:\Users\Rakesh\AppData\Local\Temp\RtmpKwqkq2\downloaded_packages
> library(car)
> install.packages("lm.beta")
C:\Users\Rakesh\AppData\Local\Temp\RtmpKwqkq2\downloaded_packages
> library(lm.beta)
> install.packages("lmtest")
C:\Users\Rakesh\AppData\Local\Temp\RtmpKwqkq2\downloaded_packages
> library(lmtest)
> Empl_sat=read_excel(file.choose())
> attach(Empl_sat)
> fix(Empl_sat)
> View(Empl_sat)
> names(Empl_sat)
[1] "ID"
[2] "Vintage"
[3] "Gender"
[4] "Business Group"
[5] "How Satisfied are you with your job ?"
[6] "How well is your skill getting used ?"
[7] "Satisfaction with Training Provided"
[8] "Satisfaction with consistency of Policies"
[9] "Satisfaction with Abundance of opportunities"
[10] "Satisfaction with Pay and compensation"
[11] "Given a chance would you leave for similar pay?"
[12] "Engagement Index"
[13] "Clarity of goals explained by manager?"
[14] "Feedback effectiveness from manager?"
[15] "Manager - taking and accepting accountability of mistakes"
[16] "Manager treating everyone equitably"
[17] "Manager Index"
[18] "Organization Communication of Core values"
[19] "Organization policies consistent with senior management actions"
[20] "Organization demonstrating integriry in business transactions"
[21] "Clarity on organization Vision, Objective and Goals"
[22] "Organization Index"
[23] "Safety in workplace"
[24] "Having resources to do my job well"
[25] "I have all the information I need to do my job effectively"
[26] "Workplace Index"
[27] "We work to attract, develop, and retain people with diverse
backgrounds."
[28] "People who challenge the status quo are valued."
[29] "I can disagree with my supervisor without fear of getting in
trouble."
[30] "Clarity on how my team's goal help achieve organization goals"
[31] "Team Index"
[32] "Comments - Areas of Improvement"
[33] "Comments - What's working well"
[34] "Sample Weight"
> str(Empl_sat)
> EI_lm=lm(`Engagement Index`~ `How Satisfied are you with your job ?
`+`How well is your skill getting used ?`+`Satisfaction with Training
Provided`+`Satisfaction with consistency of Policies`+`Satisfaction with
Abundance of opportunities`+`Satisfaction with Pay and
compensation`+`Given a chance would you leave for similar pay?`,
data=Empl_sat)
> summary(EI_lm)
Call:
lm(formula = `Engagement Index` ~ `How Satisfied are you with your job ?`
+
`How well is your skill getting used ?` + `Satisfaction with Training
Provided` +
`Satisfaction with consistency of Policies` + `Satisfaction with
Abundance of opportunities` +
`Satisfaction with Pay and compensation` + `Given a chance would you
leave for similar pay?`,
data = Empl_sat)
Residuals:
Min 1Q Median 3Q Max
-2.109e-13 -3.630e-16 5.640e-16 1.471e-15 5.183e-15
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -1.285e-14 2.818e-15 -4.561e+00 6.85e-06 ***
`How Satisfied are you with your job ?` 4.000e-01 6.143e-16 6.512e+14 < 2e-16 ***
`How well is your skill getting used ?` 6.000e-02 6.379e-15 9.406e+12 < 2e-16 ***
`Satisfaction with Training Provided` 6.000e-02 6.342e-16 9.460e+13 < 2e-16 ***
`Satisfaction with consistency of Policies` 6.000e-02 5.222e-16 1.149e+14 < 2e-16 ***
`Satisfaction with Abundance of opportunities` 6.000e-02 5.632e-16 1.065e+14 < 2e-16 ***
`Satisfaction with Pay and compensation` 6.000e-02 6.411e-15 9.359e+12 < 2e-16 ***
`Given a chance would you leave for similar pay?` 3.000e-01 5.335e-16 5.623e+14 < 2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> mean(EI_lm$residuals)
[1] -1.031181e-29
> bptest(EI_lm)
data: EI_lm
> durbinWatsonTest(EI_lm)
data: EI_lm$residuals
> vif(EI_lm)
`
`How Satisfied are you with your job ?`
1.611577