earthUI

An Interactive Interface for the earth (MARS) Package

Authors

  • William Craytor Author

Keywords:

real estate appraisal, market value, valuation engineering, social and economic importance of valuation

Abstract

This document is a technical introduction to the CRAN \texttt{earth}
package for readers with a background in mathematics who work in
real estate appraisal and valuation. \texttt{earth} implements
Friedman's Multivariate Adaptive Regression Splines (MARS), a
nonparametric regression method that discovers piecewise-linear
structure in data through a two-pass greedy search: a forward pass
that adds pairs of hinge basis functions, and a backward pass that
prunes the resulting over-fit model by generalized cross-validation.
The document covers the conceptual framework, the underlying
mathematics (hinge functions, knot search, the GCV criterion,
pruning), the software architecture of the R package, and the
application of \texttt{earth} to appraisal-specific concerns:
factor predictor handling, model reading, stability, and the
optional handoff of the hinge basis to downstream regularized
regression via \texttt{glmnet}. A separate section treats variance
models and the construction of prediction intervals from
leverage-corrected residuals. \texttt{earth} is a necessary
component of the RCA workflow --- it is the only method the author
has found that consistently delivers both an interpretable model
and an optimal $R^2$ / CVR$^2$ fit on appraisal data. The companion
document covers \texttt{glmnet}, which is an optional regularization
step applied on top of the \texttt{earth} basis, not a substitute
for it. Three appendices catalog mathematical notation, code
symbols, and statistical vocabulary, and a fourth covers the
numerical linear algebra (QR decomposition, Householder reflections,
Givens rotations) used internally.

Downloads

Download data is not yet available.

Author Biography

  • William Craytor

    Bert Craytor is a real estate valuation consultant specializing in statistical modeling and automated valuation methods. His work focuses on applying regression-based techniques — including MARS, GLM and GAM models — to residential and commercial appraisal. He is the developer of the earthUI, glmnetUI, and mgcvUI packages for  R.

References

Downloads

Published

2026-05-23

How to Cite

earthUI: An Interactive Interface for the earth (MARS) Package. (2026). Valuation Engineer Journal, 1(1), 1-33. https://journal.valuation-engineer.com/index.php/vej/article/view/1