Debian Codegraph @

man/tidy.power.htest.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/stats-htest.R
3 \name{tidy.power.htest}
4 \alias{tidy.power.htest}
5 \title{Tidy a(n) power.htest object}
6 \usage{
7 \method{tidy}{power.htest}(x, ...)
8 }
9 \arguments{
10 \item{x}{A \code{power.htest} object such as those returned from
11 \code{\link[stats:power.t.test]{stats::power.t.test()}}.}
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("ggplot2")) withAutoprint(\{ # examplesIf}
36
37 ptt <- power.t.test(n = 2:30, delta = 1)
38 tidy(ptt)
39
40 library(ggplot2)
41
42 ggplot(tidy(ptt), aes(n, power)) +
43 geom_line()
44 \dontshow{\}) # examplesIf}
45 }
46 \seealso{
47 \code{\link[stats:power.t.test]{stats::power.t.test()}}
48
49 Other htest tidiers:
50 \code{\link{augment.htest}()},
51 \code{\link{tidy.htest}()},
52 \code{\link{tidy.pairwise.htest}()}
53 }
54 \concept{htest tidiers}
55 \value{
56 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
57 \item{delta}{True difference in means.}
58 \item{n}{Number of observations by component.}
59 \item{power}{Power achieved for given value of n.}
60 \item{sd}{Standard deviation.}
61 \item{sig.level}{Significance level (Type I error probability).}
62
63 }