| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/robustbase-lmrob.R |
| 3 |
\name{glance.lmrob} |
| 4 |
\alias{glance.lmrob} |
| 5 |
\title{Glance at a(n) lmrob object} |
| 6 |
\usage{ |
| 7 |
\method{glance}{lmrob}(x, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{x}{A \code{lmrob} object returned from \code{\link[robustbase:lmrob]{robustbase::lmrob()}}.} |
| 11 |
|
| 12 |
\item{...}{Additional arguments. Not used. Needed to match generic |
| 13 |
signature only. \strong{Cautionary note:} Misspelled arguments will be |
| 14 |
absorbed in \code{...}, where they will be ignored. If the misspelled |
| 15 |
argument has a default value, the default value will be used. |
| 16 |
For example, if you pass \code{conf.lvel = 0.9}, all computation will |
| 17 |
proceed using \code{conf.level = 0.95}. Two exceptions here are: |
| 18 |
\itemize{ |
| 19 |
\item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if |
| 20 |
it will be ignored. |
| 21 |
\item \code{augment()} methods will warn when supplied a \code{newdata} argument if it |
| 22 |
will be ignored. |
| 23 |
}} |
| 24 |
} |
| 25 |
\description{ |
| 26 |
Glance accepts a model object and returns a \code{\link[tibble:tibble]{tibble::tibble()}} |
| 27 |
with exactly one row of model summaries. The summaries are typically |
| 28 |
goodness of fit measures, p-values for hypothesis tests on residuals, |
| 29 |
or model convergence information. |
| 30 |
|
| 31 |
Glance never returns information from the original call to the modeling |
| 32 |
function. This includes the name of the modeling function or any |
| 33 |
arguments passed to the modeling function. |
| 34 |
|
| 35 |
Glance does not calculate summary measures. Rather, it farms out these |
| 36 |
computations to appropriate methods and gathers the results together. |
| 37 |
Sometimes a goodness of fit measure will be undefined. In these cases |
| 38 |
the measure will be reported as \code{NA}. |
| 39 |
|
| 40 |
Glance returns the same number of columns regardless of whether the |
| 41 |
model matrix is rank-deficient or not. If so, entries in columns |
| 42 |
that no longer have a well-defined value are filled in with an \code{NA} |
| 43 |
of the appropriate type. |
| 44 |
} |
| 45 |
\details{ |
| 46 |
For tidiers for robust models from the \pkg{MASS} package see |
| 47 |
\code{\link[=tidy.rlm]{tidy.rlm()}}. |
| 48 |
} |
| 49 |
\examples{ |
| 50 |
|
| 51 |
if (requireNamespace("robustbase", quietly = TRUE)) { |
| 52 |
# load libraries for models and data |
| 53 |
library(robustbase) |
| 54 |
|
| 55 |
data(coleman) |
| 56 |
set.seed(0) |
| 57 |
|
| 58 |
m <- lmrob(Y ~ ., data = coleman) |
| 59 |
tidy(m) |
| 60 |
augment(m) |
| 61 |
glance(m) |
| 62 |
|
| 63 |
data(carrots) |
| 64 |
|
| 65 |
Rfit <- glmrob(cbind(success, total - success) ~ logdose + block, |
| 66 |
family = binomial, data = carrots, method = "Mqle", |
| 67 |
control = glmrobMqle.control(tcc = 1.2) |
| 68 |
) |
| 69 |
|
| 70 |
tidy(Rfit) |
| 71 |
augment(Rfit) |
| 72 |
} |
| 73 |
} |
| 74 |
\seealso{ |
| 75 |
\code{\link[robustbase:lmrob]{robustbase::lmrob()}} |
| 76 |
|
| 77 |
Other robustbase tidiers: |
| 78 |
\code{\link{augment.glmrob}()}, |
| 79 |
\code{\link{augment.lmrob}()}, |
| 80 |
\code{\link{tidy.glmrob}()}, |
| 81 |
\code{\link{tidy.lmrob}()} |
| 82 |
} |
| 83 |
\concept{robustbase tidiers} |
| 84 |
\value{ |
| 85 |
A \code{\link[tibble:tibble]{tibble::tibble()}} with exactly one row and columns: |
| 86 |
\item{df.residual}{Residual degrees of freedom.} |
| 87 |
\item{r.squared}{R squared statistic, or the percent of variation explained by the model. Also known as the coefficient of determination.} |
| 88 |
\item{sigma}{Estimated standard error of the residuals.} |
| 89 |
|
| 90 |
} |