| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/robustbase-lmrob.R |
| 3 |
\name{tidy.lmrob} |
| 4 |
\alias{tidy.lmrob} |
| 5 |
\alias{robustbase_tidiers} |
| 6 |
\title{Tidy a(n) lmrob object} |
| 7 |
\usage{ |
| 8 |
\method{tidy}{lmrob}(x, conf.int = FALSE, conf.level = 0.95, ...) |
| 9 |
} |
| 10 |
\arguments{ |
| 11 |
\item{x}{A \code{lmrob} object returned from \code{\link[robustbase:lmrob]{robustbase::lmrob()}}.} |
| 12 |
|
| 13 |
\item{conf.int}{Logical indicating whether or not to include a confidence |
| 14 |
interval in the tidied output. Defaults to \code{FALSE}.} |
| 15 |
|
| 16 |
\item{conf.level}{The confidence level to use for the confidence interval |
| 17 |
if \code{conf.int = TRUE}. Must be strictly greater than 0 and less than 1. |
| 18 |
Defaults to 0.95, which corresponds to a 95 percent confidence interval.} |
| 19 |
|
| 20 |
\item{...}{Additional arguments. Not used. Needed to match generic |
| 21 |
signature only. \strong{Cautionary note:} Misspelled arguments will be |
| 22 |
absorbed in \code{...}, where they will be ignored. If the misspelled |
| 23 |
argument has a default value, the default value will be used. |
| 24 |
For example, if you pass \code{conf.lvel = 0.9}, all computation will |
| 25 |
proceed using \code{conf.level = 0.95}. Two exceptions here are: |
| 26 |
\itemize{ |
| 27 |
\item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if |
| 28 |
it will be ignored. |
| 29 |
\item \code{augment()} methods will warn when supplied a \code{newdata} argument if it |
| 30 |
will be ignored. |
| 31 |
}} |
| 32 |
} |
| 33 |
\description{ |
| 34 |
Tidy summarizes information about the components of a model. |
| 35 |
A model component might be a single term in a regression, a single |
| 36 |
hypothesis, a cluster, or a class. Exactly what tidy considers to be a |
| 37 |
model component varies across models but is usually self-evident. |
| 38 |
If a model has several distinct types of components, you will need to |
| 39 |
specify which components to return. |
| 40 |
} |
| 41 |
\details{ |
| 42 |
For tidiers for robust models from the \pkg{MASS} package see |
| 43 |
\code{\link[=tidy.rlm]{tidy.rlm()}}. |
| 44 |
} |
| 45 |
\examples{ |
| 46 |
|
| 47 |
if (requireNamespace("robustbase", quietly = TRUE)) { |
| 48 |
# load libraries for models and data |
| 49 |
library(robustbase) |
| 50 |
|
| 51 |
data(coleman) |
| 52 |
set.seed(0) |
| 53 |
|
| 54 |
m <- lmrob(Y ~ ., data = coleman) |
| 55 |
tidy(m) |
| 56 |
augment(m) |
| 57 |
glance(m) |
| 58 |
|
| 59 |
data(carrots) |
| 60 |
|
| 61 |
Rfit <- glmrob(cbind(success, total - success) ~ logdose + block, |
| 62 |
family = binomial, data = carrots, method = "Mqle", |
| 63 |
control = glmrobMqle.control(tcc = 1.2) |
| 64 |
) |
| 65 |
|
| 66 |
tidy(Rfit) |
| 67 |
augment(Rfit) |
| 68 |
} |
| 69 |
} |
| 70 |
\seealso{ |
| 71 |
\code{\link[robustbase:lmrob]{robustbase::lmrob()}} |
| 72 |
|
| 73 |
Other robustbase tidiers: |
| 74 |
\code{\link{augment.glmrob}()}, |
| 75 |
\code{\link{augment.lmrob}()}, |
| 76 |
\code{\link{glance.lmrob}()}, |
| 77 |
\code{\link{tidy.glmrob}()} |
| 78 |
} |
| 79 |
\concept{robustbase tidiers} |