title: Regression in a ShinyApp
body: <p>I am trying to write a code for a shinyApp in which I select a response variable (just one select box) and then I selct all the covariates that I want in checkbox. Moreover I would like to specify the family of ditribution of my reponse variable (Gaussian, Poisson, Binomial, etc..). I don't know what to write in the main panel and in the server. Could someone help me?</p>
  
  <pre><code>library(shiny) 
  library(plotly)
  data(iris)
  
  ui&lt;-fluidPage(
    titlePanel("Regression"),
    sidebarPanel(
      selectInput("var",label="Choose the response variable:",choice=names(iris), selectize=FALSE),
      tags$hr(),
      checkboxGroupInput(inputId ="ind_var",label = "Select at least two independent variables:", choices = names(iris)),
  
      mainPanel(
  
      )
    )
  )
  
  server&lt;-function(input,output){
  
  
  }
  shinyApp(ui, server)
  </code></pre>