Guest User

Untitled

a guest
Jun 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. # summary(lm(plan_new))
  2.  
  3. # Coefficients:
  4. # Estimate Std. Error t value Pr(>|t|)
  5. # (Intercept) 72.89375 0.83076 87.743 3.64e-09 ***
  6. # A1 2.88125 0.83076 3.468 0.0179 *
  7. # B1 2.78125 0.83076 3.348 0.0204 *
  8. # C1 3.11875 0.83076 3.754 0.0132 *
  9. # D1 -1.93125 0.83076 -2.325 0.0677 .
  10. # A1:B1 -1.00625 0.83076 -1.211 0.2799
  11. # A1:C1 -0.41875 0.83076 -0.504 0.6356
  12. # A1:D1 -1.24375 0.83076 -1.497 0.1946
  13. # B1:C1 -0.26875 0.83076 -0.323 0.7594
  14. # B1:D1 0.73125 0.83076 0.880 0.4190
  15. # C1:D1 -0.03125 0.83076 -0.038 0.9714
  16.  
  17. if(!require("qualityTools")) install.packages("qualityTools") ; library(qualityTools)
  18. fat_base <- fracDesign(k = 4)
  19.  
  20. runOrd(fat_base) <- standOrd(fat_base)
  21.  
  22. # response(fat_base) <- resp
  23.  
  24. # paretoPlot(fat_base,
  25. ylim = c(0,7),
  26. ylab = "Standadized Effects",
  27. xlab = "Term",
  28. main = "Pareto Chart of the Standadized Effects")
  29.  
  30. # With
  31. # ylim = c(0,15)
  32.  
  33. if(!require("FrF2")) install.packages("FrF2") ; library(FrF2)
  34. plan.act <- FrF2(nfactors = 4,
  35. nruns = 16,
  36. randomize = FALSE)
  37.  
  38. resp <- c(63.8, 77.6, 68.8, 76.5, 72.5, 77.2, 77.7, 84.5, 60.6, 64.9,
  39. 72.7, 73.3, 68.0, 76.3, 76.0, 75.9)
  40.  
  41. plan_new <- add.response(design = plan.act, response = resp)
Add Comment
Please, Sign In to add comment