Skip to contents

Display a randomly chosen statistical quote.

Usage

statquote(ind = NULL, pattern = NULL, tag = NULL, source = NULL, topic = NULL)

# S3 method for class 'statquote'
print(x, cite = TRUE, width = NULL, ...)

# S3 method for class 'statquote'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

Arguments

ind

Integer or character. If 'ind' is missing, a random quote is chosen from all quotations. If 'ind' is specified and is an integer, return the ind^th quote. If 'ind' is specified and is character, use it as the 'pattern'.

pattern

Character string. Quotes are subset to to those which match the pattern in the quote text.

tag

Character string. Quotes are subset to those matching the specified tag.

source

Character string. Quotes are subset to those matching the specified source (person).

topic

Deprecated. Use 'tag' instead. Only kept for backward compatability.

x

object of class 'statquote'

cite

logical; should the cite field be printed?

width

Optional print width parameter

...

Other optional arguments, unused here

row.names

see as.data.frame

optional

see as.data.frame

Value

A character vector containing one quote. It is of class statquote for which an S3 print method will be invoked, and for which other methods are available.

Examples

set.seed(1234)
statquote()
#> 
#> Competent scientists do not believe their own models or theories, but
#> rather treat them as convenient fictions. ...The issue to a scientist
#> is not whether a model is true, but rather whether there is another
#> whose predictive power is enough better to justify movement from
#> today's fiction to a new one.
#> --- Steve Vardeman, Comment, 1987, Journal of the American Statistical
#> Association, 82 : 130-131.
statquote(10)
#> 
#> If one technique of data analysis were to be exalted above all others
#> for its ability to be revealing to the mind in connection with each of
#> many different models, there is little doubt which one would be chosen.
#> The simple graph has brought more information to the data analyst's
#> mind than any other device. It specializes in providing indications of
#> unexpected phenomena.
#> --- John W. Tukey, The Future of Data Analysis, The Annals of
#> Mathematical Statistics, Vol. 33, No. 1 (Mar., 1962), pp. 1-67.
statquote("boggled")
#> 
#> The statistician has no magic touch by which he may come in at the
#> stage of tabulation and make something of nothing. Neither will his
#> advice, however wise in the early stages of a study, ensure successful
#> execution and conclusion. Many a study, launched on the ways of elegant
#> statistical design, later boggled in execution, ends up with results to
#> which the theory of probability can contribute little.
#> --- W. Edwards Deming, Principles of Professional Statistical Practice.
#> Annals of Mathematical Statistics, 36(6), 1883. (1965)
statquote(pattern="boggled")
#> 
#> The statistician has no magic touch by which he may come in at the
#> stage of tabulation and make something of nothing. Neither will his
#> advice, however wise in the early stages of a study, ensure successful
#> execution and conclusion. Many a study, launched on the ways of elegant
#> statistical design, later boggled in execution, ends up with results to
#> which the theory of probability can contribute little.
#> --- W. Edwards Deming, Principles of Professional Statistical Practice.
#> Annals of Mathematical Statistics, 36(6), 1883. (1965)
statquote(source="Yates")
#> 
#> [Researchers] pay undue attention to the results of tests of
#> significance they perform on their data, particularly data derived from
#> experiments, and too little to the estimates of the magnitude of the
#> effects which they are investigating.... The emphasis on tests of
#> significance, and the consideration of the results of each experiment
#> in isolation, have had the unfortunate consequence that scientific
#> workers have often regarded the execution of a test of significance on
#> an experiment as the ultimate objective. Results are significant or not
#> and that is the end to it.
#> --- Frank Yates, The influence of Statistical Methods for Research
#> Workers on the development of the science of statistics. 1951. Journal
#> of the American Statistical Association 46: 19-34.
statquote(tag="anova")
#> 
#> the number of stars by itself is relevant only to the question of
#> whether H0 is exactly true--a question which is almost always not of
#> interest to us, especially because we usually know a priori that H0
#> cannot be exactly true.
#> --- Norman S. Matloff, Statistical hypothesis testing: problems and
#> alternatives. 1991. Environmental Entomology 20 : 1246-1250.
print.data.frame(statquote(302)) # All information
#>     qid
#> 302 302
#>                                                                                                                                 text
#> 302 Some of us feel that type III sum of squares and so-called LS-means are statistical nonsense which should have been left in SAS.
#>           source                                            cite  url
#> 302 Brian Ripley Discussing features of S-Plus, S-news 5.29.1999 <NA>
#>                           tags  tex
#> 302 data,data analysis,lsmeans <NA>