earthUI

Interactive GUI for Enhanced Adaptive Regression Through Hinges (EARTH) models.

earthUI provides a Shiny-based graphical interface for the earth package, making it easy to build, explore, and export multivariate adaptive regression spline models without writing code.

Installation

# Install remotes if needed
install.packages("remotes")

# Install earthUI from GitHub
remotes::install_github("wcraytor/earthUI")

Optional: Report Export

To export reports (HTML, PDF, or Word), install the Quarto CLI and the R package:

install.packages("quarto")

For PDF reports, a LaTeX distribution is also required:

install.packages("tinytex")
tinytex::install_tinytex()

Quick Start

library(earthUI)
launch()

This opens an interactive Shiny application where you can:

  1. Import data from CSV or Excel files
  2. Configure variables — select target, predictors, and flag categoricals
  3. Set model parameters — degree, interaction constraints, advanced tuning
  4. View results — coefficients, variable importance, partial dependence, diagnostics
  5. Export reports — publication-quality HTML, PDF, or Word reports via Quarto

Programmatic Use

All analytical functions are available independently of the Shiny app:

library(earthUI)

# Import and detect categoricals
df <- import_data("my_data.csv")
cats <- detect_categoricals(df)

# Fit a model
result <- fit_earth(df, target = "price", predictors = names(df)[-1])

# Examine results
format_summary(result)
format_variable_importance(result)

# Plot
plot_variable_importance(result)
plot_partial_dependence(result, "sqft")

License

AGPL-3