Debian Codegraph @

man/tidy.binDesign.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/bingroup.R
3 \name{tidy.binDesign}
4 \alias{tidy.binDesign}
5 \alias{bindesign_tidiers}
6 \title{Tidy a(n) binDesign object}
7 \usage{
8 \method{tidy}{binDesign}(x, ...)
9 }
10 \arguments{
11 \item{x}{A \code{\link[binGroup:binDesign]{binGroup::binDesign()}} object.}
12
13 \item{...}{Additional arguments. Not used. Needed to match generic
14 signature only. \strong{Cautionary note:} Misspelled arguments will be
15 absorbed in \code{...}, where they will be ignored. If the misspelled
16 argument has a default value, the default value will be used.
17 For example, if you pass \code{conf.lvel = 0.9}, all computation will
18 proceed using \code{conf.level = 0.95}. Two exceptions here are:
19 \itemize{
20 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
21 it will be ignored.
22 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
23 will be ignored.
24 }}
25 }
26 \description{
27 Tidy summarizes information about the components of a model.
28 A model component might be a single term in a regression, a single
29 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
30 model component varies across models but is usually self-evident.
31 If a model has several distinct types of components, you will need to
32 specify which components to return.
33 }
34 \examples{
35 \dontshow{if (rlang::is_installed(c("binGroup", "ggplot2"))) withAutoprint(\{ # examplesIf}
36
37 library(binGroup)
38 des <- binDesign(
39 nmax = 300, delta = 0.06,
40 p.hyp = 0.1, power = .8
41 )
42
43 glance(des)
44 tidy(des)
45
46 # the ggplot2 equivalent of plot(des)
47 library(ggplot2)
48 ggplot(tidy(des), aes(n, power)) +
49 geom_line()
50 \dontshow{\}) # examplesIf}
51 }
52 \seealso{
53 \code{\link[=tidy]{tidy()}}, \code{\link[binGroup:binDesign]{binGroup::binDesign()}}
54
55 Other bingroup tidiers:
56 \code{\link{glance.binDesign}()},
57 \code{\link{tidy.binWidth}()}
58 }
59 \concept{bingroup tidiers}
60 \value{
61 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
62 \item{n}{Number of trials in given iteration.}
63 \item{power}{Power achieved for given value of n.}
64
65 }