Learn R Programming

ERSA

The Exploratory Regression Shiny App (ERSA) package consists of a collection of functions for displaying the results of a regression calculation, which are then packaged together as a shiny app function.

Installation

You can install ERSA from github with:

# install.packages("devtools")
devtools::install_github("cbhurley/ERSA")
library(ERSA)

Usage

This is a basic example which shows you how to solve a common problem:

## basic example code

To use ERSA first do

library(ERSA)

Then construct a regression model of your choice.

f <- lm(Fertility ~ . , data = swiss)
exploreReg(f,swiss)

This opens up a browser through which you can explore the regression model.

Here is a screen shot of the result:

Check out the vignette for more information and details.

Shinyapps.io

To play around with ERSA on another dataset, check out the Shiny app on check out the Shiny app online. It uses the hprice1 dataset from the R package wooldridge.

Copy Link

Version

Install

install.packages('ERSA')

Monthly Downloads

213

Version

0.1.4

License

GPL (>= 2.0)

Maintainer

Catherine Hurley

Last Published

August 21st, 2023

Functions in ERSA (0.1.4)

reorderTerms

Re-order model terms
add1_models

Constructs a list of fits by adding predictors sequentially
ERSA

ERSA: A package exploring regressions with a Shiny app
drop1_models

Constructs a list of fits by dropping predictors from the supplied model
createERUI

Constructs UI for Exploratory Regression app
plotSum

Plots of model summaries
createERServer

A function which returns a shiny server for Exploratory Regression
plotSeqSS

Plots barcharts of sequential sums of squares of lm
pcpPlot

A PCP plot of the data, residuals or hat values from regression fits
termColours

Constructs colour vector for model terms
exploreReg

A function to launch the Exploratory Regression Shiny App