Memuat
Memuat
Multiple Linear Regression with Classical Assumption Tests for Human Resource Management
0 views
The goal is to test the effect of workload and stress on performance and check the classical assumptions; the data are synthetic and for illustration only. Multiple linear regression models the effect of several predictors on one numeric response using ordinary least squares (OLS), together with the classical assumption tests. It is the most common method in undergraduate and master's theses for testing partial (t-test) and joint (F-test) effects.

The result sheet uses illustrative synthetic data. R is a programming language of the R Foundation project; RStudio and Posit are trademarks of Posit PBC.
The goal is to test the effect of workload and stress on performance and check the classical assumptions; the data are synthetic and for illustration only.
| Role | Variable | Unit |
|---|---|---|
| Main | Employee performance | score |
| Supporting 1 | Workload | score |
| Supporting 2 | Job stress | score |
The model explains 60.3% of the variance in Employee performance (R2 = 0.603, F-test p < 0.001). A one-unit increase in Workload changes Employee performance by 0.800 (p < 0.001). Shapiro-Wilk (p = 0.069) and Breusch-Pagan (p = 0.167) indicate normality and constant variance hold; maximum VIF is 1.00.
Computed from illustrative synthetic data, not from a real study.
Multiple linear regression models the effect of several predictors on one numeric response using ordinary least squares (OLS), together with the classical assumption tests. It is the most common method in undergraduate and master's theses for testing partial (t-test) and joint (F-test) effects.
Report the regression equation, the sign and size of each coefficient with its t-test p-value, the F-test and adjusted R2. Include the classical assumption tests; if one fails, consider a transformation or robust standard errors.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
# Contoh kode R: Multiple Linear Regression with Classical Assumption Tests
suppressPackageStartupMessages({
library(ggplot2)
library(patchwork)
library(lmtest)
library(car)
})
set.seed(42)
# ---- Gaya grafik ----
pal <- c("#1f6feb", "#e8590c", "#2f9e44", "#ae3ec9", "#f59f00")
warna <- list(bg = "#f4f6fa", panel = "#ffffff", teks = "#1f2933", redup = "#5f6b78", grid = "#e3e8ee", bar = "#1d3557")
tata <- 1
theme_set(theme_minimal(base_size = 11) + theme(legend.position = "bottom"))
# ---- Data sintetis ----
n <- 200
d <- data.frame(workload = rnorm(n, 50, 10),
job_stress = rnorm(n, 30, 6))
z1 <- as.numeric(scale(d$workload))
z2 <- as.numeric(scale(d$job_stress))
b1 <- runif(1, 0.45, 0.85)
b2 <- runif(1, 0.15, 0.5) * sample(c(-1, 1), 1)
d$employee_performance <- 100 + 15 * (b1 * z1 + b2 * z2 + rnorm(n, 0, runif(1, 0.45, 0.8)))
write.csv(d, "data_contoh.csv", row.names = FALSE)
# ---- Analisis: regresi linear berganda (OLS) ----
fit <- lm(employee_performance ~ workload + job_stress, data = d)
s <- summary(fit)
print(s)
# ---- Uji asumsi klasik ----
sw <- shapiro.test(residuals(fit)) # normalitas residual
bp <- lmtest::bptest(fit) # heteroskedastisitas (Breusch-Pagan)
dw <- lmtest::dwtest(fit) # autokorelasi (Durbin-Watson)
vf <- car::vif(fit) # multikolinearitas
print(sw); print(bp); print(dw); print(vf)
# ---- Grafik ----
d$prediksi <- fitted(fit)
d$residual <- residuals(fit)
p1 <- ggplot(d, aes(workload, employee_performance)) +
geom_point(colour = pal[1], alpha = 0.55, size = 1.8) +
geom_smooth(method = "lm", formula = y ~ x, colour = pal[2], fill = pal[2], alpha = 0.18, linewidth = 1.1) +
labs(title = "Partial relationship with OLS fit", x = "workload", y = "employee_performance")
p2 <- ggplot(d, aes(prediksi, residual)) +
geom_hline(yintercept = 0, linetype = "dashed", colour = warna$redup) +
geom_point(colour = pal[3], alpha = 0.6, size = 1.5) +
geom_smooth(method = "loess", formula = y ~ x, se = FALSE, colour = pal[2], linewidth = 0.8) +
labs(title = "Residuals vs fitted", x = "Fitted value", y = "Residual")
p3 <- ggplot(d, aes(sample = residual)) +
stat_qq(colour = pal[1], alpha = 0.6, size = 1.3) +
stat_qq_line(colour = pal[2], linewidth = 0.9) +
labs(title = "Normal Q-Q of residuals", x = "Theoretical quantile", y = "Sample quantile")
p_hasil <- if (tata == 1) p1 | (p2 / p3) else p1 / (p2 | p3)
print(p_hasil)
The original project file is available. It is not just the picture above: you get the working R project. It can be downloaded after payment, and we send it by WhatsApp or email.
ZIP: analisis.R + data_contoh.csv + BACA-DULU.txt
Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$19
excl. 11% VAT
Duration: 3 working days
Output: R files + result figures
Deliverables
Package 2 · most chosen
US$50
excl. 11% VAT
Duration: 7 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$113
excl. 11% VAT
Duration: 12-15 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. The original project file is a ZIP containing the complete analisis.R script, a data_contoh.csv sample dataset and a BACA-DULU.txt guide. It can be downloaded after payment, and we send it by WhatsApp or email. For your own data (Package 2 and 3) the script is adapted to your dataset.
Yes. Multiple Linear Regression with Classical Assumption Tests is commonly used at this level in Human Resource Management. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output R Studio gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$19, Package 2 (your data analysis and interpretation) US$50 and Package 3 (full guidance) US$113, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.