Debian Codegraph @

man/tidy.nlrq.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/quantreg-nlrq.R
3 \name{tidy.nlrq}
4 \alias{tidy.nlrq}
5 \alias{nlrq_tidiers}
6 \title{Tidy a(n) nlrq object}
7 \usage{
8 \method{tidy}{nlrq}(x, conf.int = FALSE, conf.level = 0.95, ...)
9 }
10 \arguments{
11 \item{x}{A \code{nlrq} object returned from \code{\link[quantreg:nlrq]{quantreg::nlrq()}}.}
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 \examples{
42 \dontshow{if (rlang::is_installed("quantreg")) withAutoprint(\{ # examplesIf}
43
44 # load modeling library
45 library(quantreg)
46
47 # build artificial data with multiplicative error
48 set.seed(1)
49 dat <- NULL
50 dat$x <- rep(1:25, 20)
51 dat$y <- SSlogis(dat$x, 10, 12, 2) * rnorm(500, 1, 0.1)
52
53 # fit the median using nlrq
54 mod <- nlrq(y ~ SSlogis(x, Asym, mid, scal),
55 data = dat, tau = 0.5, trace = TRUE
56 )
57
58 # summarize model fit with tidiers
59 tidy(mod)
60 glance(mod)
61 augment(mod)
62 \dontshow{\}) # examplesIf}
63 }
64 \seealso{
65 \code{\link[=tidy]{tidy()}}, \code{\link[quantreg:nlrq]{quantreg::nlrq()}}
66
67 Other quantreg tidiers:
68 \code{\link{augment.nlrq}()},
69 \code{\link{augment.rq}()},
70 \code{\link{augment.rqs}()},
71 \code{\link{glance.nlrq}()},
72 \code{\link{glance.rq}()},
73 \code{\link{tidy.rq}()},
74 \code{\link{tidy.rqs}()}
75 }
76 \concept{quantreg tidiers}
77 \value{
78 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
79 \item{conf.high}{Upper bound on the confidence interval for the estimate.}
80 \item{conf.low}{Lower bound on the confidence interval for the estimate.}
81 \item{estimate}{The estimated value of the regression term.}
82 \item{p.value}{The two-sided p-value associated with the observed statistic.}
83 \item{statistic}{The value of a T-statistic to use in a hypothesis that the regression term is non-zero.}
84 \item{std.error}{The standard error of the regression term.}
85 \item{term}{The name of the regression term.}
86
87 }