Title: | Interactive Model Exploration using 'GGobi' |
---|---|
Description: | Exploratory model analysis with <http://ggobi.org>. Fit and graphical explore ensembles of linear models. |
Authors: | Hadley Wickham <[email protected]> |
Maintainer: | Hadley Wickham <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.3.1.9000 |
Built: | 2024-11-17 02:53:10 UTC |
Source: | https://github.com/hadley/meifly |
Calculcate coefficients for all models in ensemble. Returns raw, t-value, absolute t-value, and standardised coefficent values.
## S3 method for class 'ensemble' coef(object, ...)
## S3 method for class 'ensemble' coef(object, ...)
object |
ensemble of models |
... |
other arguments ignored |
General ensemble of models from models in global workspace'
findmodels(modeltype = "lm", dataset, pattern)
findmodels(modeltype = "lm", dataset, pattern)
modeltype |
model class |
dataset |
if specified, all models must use this dataset |
pattern |
pattern of model object names to match |
This technique generalises fitbest
. While it is much
slower it will work for any type of model.
fitall(y, x, method = "lm", ...)
fitall(y, x, method = "lm", ...)
y |
vector y values |
x |
matrix of x values |
method |
|
... |
other arguments passed on to |
y <- swiss$Fertility x <- swiss[, -1] mods <- fitall(y, x, "lm")
y <- swiss$Fertility x <- swiss[, -1] mods <- fitall(y, x, "lm")
Use the leaps package to generate the best subsets.
fitbest(formula, data, nbest = 10, ...)
fitbest(formula, data, nbest = 10, ...)
formula |
model formula |
data |
data frame |
nbest |
number of subsets of each size to record |
... |
other arguments passed to |
y <- swiss$Fertility mods <- fitbest(Fertility ~ ., swiss)
y <- swiss$Fertility mods <- fitbest(Fertility ~ ., swiss)
Generate linear models by bootstrapping observations
lmboot(formula, data, n = 100)
lmboot(formula, data, n = 100)
formula |
model formula |
data |
data set |
n |
number of bootstrapped data sets to generate |
Calculate residuals for all models in ensemble.
## S3 method for class 'ensemble' residuals(object, ...)
## S3 method for class 'ensemble' residuals(object, ...)
object |
ensemble of models |
... |
other arguments ignored |
data.frame of class resid_ensemble
Returns degrees of freedom, log likelihood, R-squared, AIC, BIC and adjusted R-squared.
## S3 method for class 'ensemble' summary(object, ...)
## S3 method for class 'ensemble' summary(object, ...)
object |
ensemble of models |
... |
other arguments ignored |
Summarise residuals from ensemble.
## S3 method for class 'resid_ensemble' summary(object, data = attr(object, "data"), ...)
## S3 method for class 'resid_ensemble' summary(object, data = attr(object, "data"), ...)
object |
model residuals from |
data |
associated data set |
... |
other arguments ignored |
Provides variable level statistics.
## S3 method for class 'variable_ensemble' summary(object, ...)
## S3 method for class 'variable_ensemble' summary(object, ...)
object |
ensemble of models |
... |
other arguments ignored |