
Run the generalised linear model fitting application
Source:R/glm_fitting_tool_global.R
run_shiny_glm_fitting_tool.RdOpens NetGLM, a Shiny application that imports data from a CSV file or a database query, fits generalised linear models to it, compares the AIC of stored models, suggests terms by stepwise AIC or BIC, charts actual against predicted values, validates the model on rows held out for testing (deviance per row, Gini coefficient, lift and double lift charts) and downloads the model and its predictions.
Value
A shiny app object. Printing it, as happens when the function is
called at the console, opens the application; it can also be passed to
shiny::runApp().
Details
The formula typed in the application, or read from one of its
settings files, is restricted to the columns of the imported data, numbers,
the formula operators and a small set of formula functions: I(),
log(), exp(), sqrt(), pmin(), pmax(),
poly(), the splines ns() and bs(), cut() with
c() for its breaks, factor(), as.factor(),
interaction() and offset(). Any other call is refused, so a
settings file shared between colleagues cannot run code.
See also
run_shiny_distribution_fitting_tool and
run_shiny_simulator, the package's other applications.
Examples
if (interactive()) {
run_shiny_glm_fitting_tool()
}