Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1.  alr  ~  1  R
  2.  
  3. R version 3.6.0 (2019-04-26) -- "Planting of a Tree"
  4. Copyright (C) 2019 The R Foundation for Statistical Computing
  5. Platform: x86_64-redhat-linux-gnu (64-bit)
  6.  
  7. R is free software and comes with ABSOLUTELY NO WARRANTY.
  8. You are welcome to redistribute it under certain conditions.
  9. Type 'license()' or 'licence()' for distribution details.
  10.  
  11. Natural language support but running in an English locale
  12.  
  13. R is a collaborative project with many contributors.
  14. Type 'contributors()' for more information and
  15. 'citation()' on how to cite R or R packages in publications.
  16.  
  17. Type 'demo()' for some demos, 'help()' for on-line help, or
  18. 'help.start()' for an HTML browser interface to help.
  19. Type 'q()' to quit R.
  20.  
  21. > source('/home/alr/Downloads/VarianceAssociates.R')
  22. 4 Plane Strategy. Profits = 45 Variance 39375
  23. 5 Plane Strategy. Profits = 96 Variance 49059
  24. 6 Plane Strategy. Profits = 105 Variance 75375
  25. 7 Plane Strategy. Profits = 57 Variance 87876
  26. 8 Plane Strategy. Profits = 0 Variance 104400
  27.  
  28. Cash Flows when Demands Dependent
  29. 4 Plane Strategy. Profits = 45
  30. 5 Plane Strategy. Profits = 96
  31. 6 Plane Strategy. Profits = 105
  32. 7 Plane Strategy. Profits = 57
  33. 8 Plane Strategy. Profits = 0
  34.  
  35. Cash Flows when Demands Independent
  36. 4 Plane Strategy. Profits = 96.0000000000001
  37. 5 Plane Strategy. Profits = 135
  38. 6 Plane Strategy. Profits = 123
  39. 7 Plane Strategy. Profits = 69.0000000000001
  40. 8 Plane Strategy. Profits = 1.13686837721616e-13
  41. > ls()
  42. [1] "Cash_Flows" "CF" "Compen_Cost"
  43. [4] "Covariance" "Covariance_Ind" "Expect"
  44. [7] "Expected_CF" "Expected_CF_Fear" "Expected_CF_Oops"
  45. [10] "Expected_Dem_Fear" "Expected_Dem_Oops" "Expected_Total"
  46. [13] "Fear_Demand" "Fixed_Cost" "Oops_Demand"
  47. [16] "P" "Plane_Dist" "Planes_Demand"
  48. [19] "Planes_Firm" "Planes_On_Hand" "Planes_Total"
  49. [22] "Revenue" "Strat" "Variance_CF"
  50. > Covariance
  51. [1] 0.82
  52. > Variance_CF
  53. [1] 104400
  54. > sqrt(Variance_CF)
  55. [1] 323.1099
  56. > Covariance/sqrt(Variance_CF)
  57. [1] 0.002537836
  58. > q()
  59. Save workspace image? [y/n/c]: n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement