library / libe17bb73cf1daee15
Using R in HR Analytics A practical guide to analysing people data
Martin Edwards, Kirsten Edwards .
In a sentence
A practical, hands-on guide to applying inferential and predictive statistical techniques to human resources data using the open-source R programming language.
Using R in HR Analytics bridges the gap between data science and human resources by teaching HR professionals, students, and management-information teams how to move beyond descriptive reporting toward rigorous predictive analytics. Built on the foundation of the authors' earlier SPSS-based text, this R edition walks readers through the entire analytic journey: understanding HR information systems and data types, importing and manipulating data in R, choosing the correct statistical test, and applying techniques such as chi-square, t-tests, ANOVA, multiple and logistic regression, factor and reliability analysis, and survival analysis. Through six detailed case studies — diversity, engagement, turnover, performance, recruitment/selection, and intervention monitoring — plus chapters on scenario modelling, advanced methods (mediation, moderation, multilevel models, machine learning), and ethics, the book equips readers to diagnose causal drivers of key HR outcomes, predict future behaviour, build evidence-based business cases, and persuade leadership with 'hard' evidence while remaining alert to the limitations and ethical responsibilities of working with people data.
The four lenses
- Science
- Statistics
- Systems
- Strategy
Tags
The model
An inferred factor model expressing how organizational design levers and contextual conditions influence psychological and perceptual states and behavioural patterns, which in turn drive key HR outcome metrics such as engagement, turnover, performance and diversity representation. The book operationalizes this through statistical tests selected by variable type.
HR Intervention and Design Leversdesign lever
Deliberate organizational actions and programmes such as training courses, induction/onboarding days, work-life balance programmes, value-change events and supportive HR policies that management introduces to influence employee states and outcomes.
Contextual and Structural Conditionscontextual condition
Relatively stable contextual and structural features of the work environment including function/department, geographic location, team size, gender composition, group diversity composition and country, which form the backdrop against which states and behaviours occur.
Individual Attributes and Capabilitiescontextual condition
Demographic and capability characteristics of individuals such as gender, age, tenure, education, disability status, personality scores, competency ratings and aptitude test scores that are used as predictors of behavioural and outcome variables.
Psychological and Perceptual Statespsychological state
Employees' internal attitudes, perceptions and affective-cognitive states including engagement, job satisfaction, perceived organizational support, perceptions of justice, job strain, person-organization fit, organizational commitment and customer satisfaction perceptions, often measured by multi-item survey scales.
Behavioural and Discretionary Patternsbehavioral pattern
Observable employee behaviours and discretionary effort including organizational citizenship behaviour, intention to leave, discretionary effort, and value-consistent behaviour that lie between internal states and hard outcome metrics.
Key HR Outcome Metricsoutcome metric
The tangible, often archival or behavioural performance indicators the organization seeks to influence, including employee turnover/separation rate, individual and team performance (appraisal ratings, scan rates, sales, customer loyalty/reinvestment), sickness absence, length of service, recruitment outcomes and diversity representation levels.
How they connect
- hr intervention design → influences psychological perceptual states
- hr intervention design → predicts hr outcome metrics
- individual attributes → predicts hr outcome metrics
- psychological perceptual states → predicts behavioural patterns
- psychological perceptual states → predicts hr outcome metrics
- behavioural patterns → predicts hr outcome metrics
- psychological perceptual states → mediates hr outcome metrics
- contextual conditions → moderates hr outcome metrics
- contextual conditions → correlates individual attributes
A candidate measure
Using R in HR Analytics A practical guide to analysing people data — derived measurement candidates
HR Intervention and Design Levers
Training participation flag; Induction attendance flag; Onboarding buddy assignment; Pre/post intervention period indicator
self-report suitability: low
Contextual and Structural Conditions
Function/department code; Country/location code; Team headcount; Percentage male; Percentage underrepresented group; Number of team leads
self-report suitability: low
Individual Attributes and Capabilities
Gender, age, tenure, education, disability status; Personality percentile scores (OCEAN); Numerical and verbal aptitude scores; Competency ratings (1-5)
self-report suitability: medium
Psychological and Perceptual States
Multi-item Likert scale composites; Percentage of team answering favourably; Engagement index; Customer satisfaction scores
self-report suitability: high
Behavioural and Discretionary Patterns
OCB/discretionary effort scale; Value commitment composite; Intention to leave scale
self-report suitability: high
Key HR Outcome Metrics
Leaver/stayer flag and separation percentage; Performance appraisal rating; Items scanned per minute; Sales/reinvestment figures; Sickness absence days; Years of service; Recruitment stage flags; Diversity percentages
self-report suitability: low
The story
The reader An HR professional, student, or management-information analyst who wants to become a credible, data-literate, high-performing contributor able to predict and influence key people outcomes.
External problem
They process vast amounts of people-related data but lack the statistical skills to move beyond descriptive reports to predictive, causal insight.
Internal problem
They feel intimidated by statistics, fear being asked 'So what?' in the boardroom, and worry their analysis will be dismissed as coincidence.
Philosophical problem
It is just plain wrong for HR decisions about people to rest on gut instinct and bias when rigorous, evidence-based analytic methods are available and affordable.
The plan
- Understand your organization's data sources, systems and data types.
- Learn R and how to import, manipulate and merge people data.
- Use the analysis-strategy reference to select the correct statistical test.
- Work through the six case studies applying tests to real-style HR data.
- Translate significant findings into predictive scenarios and business cases.
- Reflect on ethics, limitations and advanced techniques as you grow.
Success
- The reader becomes a Master of the HR Metric, able to diagnose drivers of performance, turnover, engagement and diversity.
- Their HR function becomes more credible and persuasive, presenting robust 'hard' evidence to leadership.
- They build evidence-based business cases and 'what if' scenario models that help the organization invest wisely and prosper.
At stake
- The HR function remains stuck producing the same descriptive reports in a Groundhog Day cycle, never trusted or prioritized.
- Decisions continue to be made on gut instinct and bias, leading to misdiagnosed problems and wasted investment in interventions that do not work.
- Costly turnover, low performance, discrimination and lost opportunities go undetected and unaddressed.
Chapter by chapter
ch01HR information systems and data
This chapter explores the integration of HR information systems with advanced data analytics, emphasizing the transformative role of AI and big data in modern human resource practices.
- Leveraging HR information systems effectively can transform HR into a strategic partner within organizations.
- Artificial intelligence and large language models signify the future of HR efficiency; those who prepare now will reap substantial benefits.
- Understanding R and other analytical tools is crucial for modern HR professionals who wish to harness data effectively.
- Enhanced data integration leads to improved reporting, which is essential for informed decision-making in HR.
ch02Analysis strategies
This chapter outlines an array of analysis strategies in human resources, detailing how to transit from simplistic descriptive reports to nuanced predictive analytics.
ch03Case study 1: Diversity analytics
This chapter explores advanced methods of analyzing diversity and inclusion (D&I) within organizations, highlighting the application of statistical techniques to measure and interpret diversity metrics effectively.
ch04Case Study 6: Monitoring the Impact of Interventions
This chapter emphasizes the significance of evaluating the effectiveness of various organizational interventions through robust data analysis, particularly within HR settings.
ch05p01HR analytics: What is it and why is it important? (part 1/2)
The emergence of predictive HR analytics has shifted from potential novelty to essential practice, helping organizations leverage human capital for better business outcomes.
ch05p02HR analytics: What is it and why is it important? (part 2/2)
This chapter delves into the various types of HR data variables and the statistical methods necessary for analyzing them, emphasizing the importance of understanding data types for effective HR analytics.
ch06Case study 1: Diversity and Inclusion
This chapter presents the case for a strategic focus on diversity and inclusion (D&I) in organizations, arguing that thoughtful management of diversity leads not only to social justice but also to tangible business benefits.
- Diversity is essential for organizational success, not just ethically but also operationally, as it enhances team performance and innovation.
- A descriptive approach to D&I is insufficient; predictive analytics can uncover significant insights and drive policy change.
- Chi-square tests provide a robust framework to identify and quantify disparity in gender and ethnic representation across job grades.
- Organizations must move from mere compliance with D&I initiatives to embedding them in their strategic framework.
ch07Case study 2: Employee attitude surveys – engagement and workforce perceptions
Employee attitude surveys are essential tools for understanding and improving employee engagement, yet defining and measuring engagement can be complex and nuanced.
- Employee engagement is multifaceted and lacks a singular agreed-upon definition; clarity is essential for effective measurement.
- Surveys should utilize multiple items targeting specific engagement attributes to capture the nuances of employee sentiment.
- Validity and reliability testing are key to ensuring that engagement measures reflect true employee experiences and perceptions.
- Employee surveys must be treated as dynamic tools that demand timely responses to foster trust and credibility.
ch08Case study 3: Predicting employee turnover
This chapter delves into voluntary employee turnover, highlighting its implications for organizations and detailing a predictive analysis framework to understand and address the underlying causes.
- Employee turnover can incur significant costs, projected at up to 200% of an individual's salary depending on factors like skill level and role complexity.
- Understanding and analyzing turnover through descriptive and predictive statistical methods offers valuable insights that can inform HR interventions.
- Regular turnover reporting without statistical significance testing may lead to misdiagnosis of underlying organizational issues, masking deeper causes.
- Logistic regression models reveal that specific factors, including employee gender and appraisal ratings, significantly influence turnover likelihood.
ch09Case Study 3: Predicting Employee Turnover
This chapter examines the application of statistical analysis in predicting employee turnover, highlighting gender disparities in retention rates and the implications for organizational practices.
ch10Case study 4: Predicting employee performance
This chapter explores the critical role of HR analytics in predicting employee performance to enhance organizational effectiveness amid economic volatility.
ch12p02Case Study 5: Recruitment and Selection Analytics (part 2/2)
This chapter examines the impact of recruitment strategies on employee value commitment over time, utilizing statistical analysis to derive actionable insights from HR data.
- Employee value commitment increases significantly over time when strategically embedded in the organizational culture.
- Differences in value commitment across departments highlight the need for tailored approaches to recruitment and selection.
- Statistical methods like repeated measures ANOVA and GLM provide essential frameworks for analyzing complex HR data effectively.
- Events occurring during data collection phases can significantly influence employee engagement metrics and should not be overlooked.