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.
# Install remotes if needed
install.packages("remotes")
# Install earthUI from GitHub
remotes::install_github("wcraytor/earthUI")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()library(earthUI)
launch()This opens an interactive Shiny application where you can:
For real estate appraisal workflows, earthUI provides:
earthUI includes a demo appraisal dataset
(Appraisal_1.csv) with residential sales data. Access it
with:
demo_file <- system.file("extdata", "Appraisal_1.csv", package = "earthUI")
df <- import_data(demo_file)All analytical functions are available independently of the Shiny app:
library(earthUI)
# Load the demo dataset
demo_file <- system.file("extdata", "Appraisal_1.csv", package = "earthUI")
df <- import_data(demo_file)
cats <- detect_categoricals(df)
# Fit a model
result <- fit_earth(df, target = "sale_price",
predictors = c("living_sqft", "lot_size", "age"))
# Examine results
format_summary(result)
format_variable_importance(result)
# Plot
plot_variable_importance(result)
plot_contribution(result, 1)AGPL-3