powered by
This function uses htest.short, to extract statistic and p-value from htest-classed object. Main advantage of using htest is that it's vectorised, and can accept multiple methods.
htest.short
htest
htest( x, ..., use.labels = getOption("rapport.use.labels"), use.method.names = TRUE, colnames = c("Method", "Statistic", "p-value") )
arguments to be passed to function specified in test
test
additional arguments for function specified in test
a logical value indicating whether variable labels should be placed in row names. If set to FALSE, output of deparse(substitute(x)) will be used.
FALSE
deparse(substitute(x))
use the string provided in method attribute of htest object
method
a character string containing column names
a data.frame with applied tests in rows, and their results (statistic and p-value) in columns
data.frame
Default parameters are read from options:
options
'rapport.use.labels'.
# NOT RUN { library(nortest) htest(rnorm(100), shapiro.test) htest(rnorm(100), lillie.test, ad.test, shapiro.test) htest(mtcars, lillie.test) htest(mtcars, lillie.test, ad.test, shapiro.test) # }
Run the code above in your browser using DataLab