EnhancedLinearRegression_Pitch

Jbob92
Mar 2025

Introduction

  • This Shiny app allows users to explore simple linear regression models interactively.
  • Users can choose a dataset, select predictor and response variables, and view regression results.

How It Works

  1. User Inputs:

    • Select dataset (mtcars, iris).
    • Choose predictor (x) and response (y) variables.
    • Optionally display model summary.
  2. Server Processing:

    • Fits a linear regression model dynamically.
    • Computes regression coefficients.
    • Generates a scatter plot with a fitted regression line.

Key Features

  • Dynamic UI: Select variables from chosen dataset.
  • Real-Time Model Updates: Regression updates instantly.
  • Graphical Output: Scatter plot with regression line.
library(ggplot2)
ggplot(mtcars, aes(x=hp, y=mpg)) + geom_point() + geom_smooth(method="lm", col="red")

plot of chunk unnamed-chunk-1

Demo

Summary & Next Steps