Learn R Programming

metap (version 1.4)

allmetap: Carry out all or some of the methods in the package

Description

Enables all or a selected number of the package methods to be executed on the same dataset

Usage

allmetap(p, method = NULL)
# S3 method for allmetap
print(x, digits = 5, ...)

Arguments

p

A vector of p-values

method

A vector of character containing names of methods or ‘all

x

An object of class ‘allmetap

digits

How many digits to print?

...

Other arguments to be passed through

Value

Returns an object of class ‘allmetap’ and ‘data.frame’ containing columns

p

The value of p returned

valid

The number of valid p values used for that method

eponym

The eponym, if any, for the method

The row names are the names of the methods used. If any of the methods cannot be applied to that data--set NA are returned for p and valid.

Details

The function uses each of the methods specified on the data-set in p. If method contains ‘all’ then this over--rides any specific method(s) named.

Examples

Run this code
# NOT RUN {
data(beckerp)
allmetap(beckerp, method = "all")
allmetap(beckerp, method = c("sumz", "sumlog"))
# }

Run the code above in your browser using DataLab