R/StepRegGUI.R

Defines functions StepRegGUI

Documented in StepRegGUI

#' Launch StepReg GUI
#'
#' Launches an interactive Shiny application for performing stepwise regression analysis.
#' The application provides a user-friendly interface for data analysis, model selection,
#' and visualization of results.
#'
#' @details The application consists of two main steps:
#' 
#' \strong{Step 1: Data Preparation}
#' \itemize{
#'   \item Upload custom datasets or select from built-in examples
#'   \item Configure data import settings (headers, separators, quotes)
#'   \item View and modify variable types (numeric, factor, integer, character)
#'   \item Generate exploratory data visualizations
#' }
#' 
#' \strong{Step 2: Model Analysis}
#' \itemize{
#'   \item Select regression type:
#'     \itemize{
#'       \item Linear regression
#'       \item Logistic regression
#'       \item Cox proportional hazards
#'       \item Poisson regression
#'       \item Gamma regression
#'       \item Negative binomial regression
#'     }
#'   \item Choose dependent and independent variables
#'   \item Specify stepwise selection strategy:
#'     \itemize{
#'       \item Forward selection
#'       \item Backward elimination
#'       \item Bidirectional elimination
#'       \item Best subset selection
#'     }
#'   \item Set model selection criteria (AIC, BIC, etc.)
#'   \item Configure significance levels for variable entry/removal
#'   \item Generate comprehensive reports and visualizations
#' }
#'
#' @return Launches the Shiny application in the user's default web browser.
#'
#' @examples
#' 
#' if(interactive()){
#'   StepRegGUI()
#' }
#'
#' @seealso \code{\link[StepReg]{stepwise}} for the core stepwise regression function
#' @seealso \code{\link[StepReg]{report}} for generating analysis reports
#' @seealso \code{\link[StepReg]{plot.StepReg}} for visualization functions
#'
#' @importFrom shiny shinyApp
#' 
#' @export
#'
StepRegGUI <- function() {
  shinyApp(ui = ui(), server = server)
}

Try the StepRegShiny package in your browser

Any scripts or data that you put into this service are public.

StepRegShiny documentation built on Dec. 1, 2025, 9:07 a.m.