Learn R Programming

lazyWeave (version 2.2.0)

is.significant: Determine if a p-value will denote a result as significant.

Description

Makes a decisions about the significance of a test by evaluating the p-value.

Usage

is.significant(pvalue,alpha=.05)

Arguments

pvalue
p-value of a test. May be a number, or may be a character string, such as one produced by pvalue.QHS.
alpha
Significance level for the test. is.significant returns TRUE when pvalue <= alpha<="" code="">.

Details

This function was built with the intent of using it to identify rows in descriptive tables (such as cattable and conttable) with significant results. These rows could then be highlighted using bold print automatically. This might prove useful for large tables. Whereas it was intended to be used in concert with pvalue.QHS, is.significant will peel off and '>' or '

Examples

Run this code
is.significant(wilcox.test(mpg~am,data=mtcars)$p.value)
 
	x=pvalue.QHS(wilcox.test(mpg~am,data=mtcars)$p.value)
	is.significant(x)

	is.significant(">0.99")

Run the code above in your browser using DataLab