Guest User

Untitled

a guest
Apr 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.94 KB | None | 0 0
  1. prog <- function()
  2. {
  3.     while(true)
  4.     {
  5.         dist <- menu(c("Binomial", "Geometric", "Hypergeometric", "Poisson", "Quit"), graphics = TRUE, title = "What distribution?")
  6.        
  7.         if(dist == 1)
  8.         {
  9.             type <- menu(c("PDF", "CDF"), graphics = TRUE, title = "Which type?")
  10.             if(type == 1)
  11.             {
  12.                
  13.             }  
  14.             else if(type == 2)
  15.             {
  16.                
  17.             }                  
  18.         }
  19.         else if(dist == 2)
  20.         {
  21.             type <- menu(c("PDF", "CDF"), graphics = TRUE, title = "Which type?")
  22.  
  23.             if(type == 1)
  24.             {
  25.                
  26.             }  
  27.             else if(type == 2)
  28.             {
  29.                
  30.             }      
  31.         }
  32.         else if(dist == 3)
  33.         {
  34.             type <- menu(c("PDF", "CDF"), graphics = TRUE, title = "Which type?")
  35.             if(type == 1)
  36.             {
  37.                
  38.             }  
  39.             else if(type == 2)
  40.             {
  41.                
  42.             }      
  43.         }
  44.         else if(dist == 4)
  45.         {
  46.             type <- menu(c("PDF", "CDF"), graphics = TRUE, title = "Which type?")
  47.             if(type == 1)
  48.             {
  49.                
  50.             }  
  51.             else if(type == 2)
  52.             {
  53.                
  54.             }      
  55.         }
  56.         else if(dist == 5)
  57.         {
  58.             break
  59.         }
  60.     }
  61. }
Add Comment
Please, Sign In to add comment