Skip to content

Instantly share code, notes, and snippets.

@rsalaza4
Last active January 22, 2020 18:26
Show Gist options
  • Save rsalaza4/eff4a0a7e8e4894e4b82152fcf66e847 to your computer and use it in GitHub Desktop.
Save rsalaza4/eff4a0a7e8e4894e4b82152fcf66e847 to your computer and use it in GitHub Desktop.
# Import the SixSigma package
library(SixSigma)
# Specify the effect to be analyzed
b.effect <- "Delay"
# Create a vector with the names of the causes classification groups
b.groups <- c("Personnel", "Weather", "Suppliers", "Planning")
# Create a vector that contains the causes
b.causes <- c(vector(mode = "list", length = length(b.groups)))
# Create lists corresponding to the causes for each corresponding group
b.causes[1] <- list(c("Training", "Inadequate"))
b.causes[2] <- list(c("Rain", "Temperature", "Wind"))
b.causes[3] <- list(c("Materials", "Delays", "Rework"))
b.causes[4] <- list(c("Customer", "Permissions", "Errors"))
# Create the cause-and-effect diagram
ss.ceDiag(b.effect,
b.groups,
b.causes,
main = "Cause-and-Effect Diagram (SixSigma package)",
sub = "Construction Example")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment