0% found this document useful (0 votes)
40 views2 pages

HR Analytics

The document analyzes employee turnover data and contains descriptive statistics, chi-squared tests, and linear regression models to understand the relationship between leaver status and other variables like gender, age, and length of service. Linear models are created using leaver status as the response variable and various demographic and employment factors as predictors.

Uploaded by

Sai Sree
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views2 pages

HR Analytics

The document analyzes employee turnover data and contains descriptive statistics, chi-squared tests, and linear regression models to understand the relationship between leaver status and other variables like gender, age, and length of service. Linear models are created using leaver status as the response variable and various demographic and employment factors as predictors.

Uploaded by

Sai Sree
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

> summary(Individual_Turnover)

BossGender Gender Age


Min. :0.0000 Min. :0.0000 Min. :16.0
1st Qu.:0.0000 1st Qu.:0.0000 1st Qu.:31.0
Median :1.0000 Median :0.0000 Median :38.0
Mean :0.6854 Mean :0.4961 Mean :38.2
3rd Qu.:1.0000 3rd Qu.:1.0000 3rd Qu.:46.0
Max. :1.0000 Max. :1.0000 Max. :66.0
NA's :2
LengthOfService AppraisalRating Country
Min. : 0.000 Min. :1.000 Min. : 1.000
1st Qu.: 2.000 1st Qu.:4.000 1st Qu.: 8.000
Median : 7.000 Median :4.000 Median : 9.000
Mean : 9.799 Mean :3.887 Mean : 7.926
3rd Qu.:14.000 3rd Qu.:4.000 3rd Qu.: 9.000
Max. :42.000 Max. :5.000 Max. :10.000

LeaverStatus
Min. :0.0000
1st Qu.:0.0000
Median :0.0000
Mean :0.1277
3rd Qu.:0.0000
Max. :1.0000
NA's :1

> print(chisq.test(turn.data))

Pearson's Chi-squared test

data: turn.data
X-squared = 14.509, df = 9, p-value = 0.1053

> lmturn<-
lm(LeaverStatus~BossGender+Gender+Age+AppraisalRating+Country+LengthOfService,data=
Individual_Turnover)
> summary(lmturn)

Call:
lm(formula = LeaverStatus ~ BossGender + Gender + Age + AppraisalRating +
Country + LengthOfService, data = Individual_Turnover)

Residuals:
Min 1Q Median 3Q Max
-0.33151 -0.14877 -0.10720 -0.06595 0.97293

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 3.933e-01 6.348e-02 6.196 7.3e-10
BossGender -2.022e-02 1.793e-02 -1.128 0.259636
Gender -6.093e-02 1.655e-02 -3.682 0.000239
Age -3.308e-05 1.021e-03 -0.032 0.974163
AppraisalRating -3.493e-02 1.186e-02 -2.945 0.003277
Country -8.668e-03 3.871e-03 -2.240 0.025250
LengthOfService -1.707e-03 1.033e-03 -1.653 0.098530

(Intercept) ***
BossGender
Gender ***
Age
AppraisalRating **
Country *
LengthOfService .
---
Signif. codes:
0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 0.3285 on 1643 degrees of freedom


(3 observations deleted due to missingness)
Multiple R-squared: 0.02881, Adjusted R-squared: 0.02526
F-statistic: 8.123 on 6 and 1643 DF, p-value: 1.135e-08

>

lmturn2<-lm(LeaverStatus~Age+I(Age^2),data=Individual_Turnover)
> summary(lmturn)

Call:
lm(formula = LeaverStatus ~ BossGender + Gender + Age + AppraisalRating +
Country + LengthOfService, data = Individual_Turnover)

Residuals:
Min 1Q Median 3Q Max
-0.33151 -0.14877 -0.10720 -0.06595 0.97293

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 3.933e-01 6.348e-02 6.196 7.3e-10
BossGender -2.022e-02 1.793e-02 -1.128 0.259636
Gender -6.093e-02 1.655e-02 -3.682 0.000239
Age -3.308e-05 1.021e-03 -0.032 0.974163
AppraisalRating -3.493e-02 1.186e-02 -2.945 0.003277
Country -8.668e-03 3.871e-03 -2.240 0.025250
LengthOfService -1.707e-03 1.033e-03 -1.653 0.098530

(Intercept) ***
BossGender
Gender ***
Age
AppraisalRating **
Country *
LengthOfService .
---
Signif. codes:
0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 0.3285 on 1643 degrees of freedom


(3 observations deleted due to missingness)
Multiple R-squared: 0.02881, Adjusted R-squared: 0.02526
F-statistic: 8.123 on 6 and 1643 DF, p-value: 1.135e-08

>

You might also like