pvalue_control: Checking pvalue threshold

Description Usage Arguments Value Note Author(s) Examples

Description

The function takes an object of class "lm" and an object of class "numeric" providing a threshold for pvalue. If pvalue is greater or equal than threshold it returns FALSE, TRUE otherwise.

Usage

1
pvalue_control(x, alpha)

Arguments

x

An object of class "lm", from which you want to evaluate the pvalue.

alpha

It's an object of class "numeric", representing the maximum threshold for pvalue.

Value

The function returns TRUE if pvalue is smaller than the threshold provided (p<alpha), FALSE otherwise.

Note

Observations and bug segnalations are welcome.

Author(s)

Eugenio Thieme, eugen@thieme.it

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
y <- runif(50,0,50)
x <- c(1:50)
test <- lm(y~x)
bool <- pvalue_control(test, alpha=0.05) #Pass the result of lm and a max value for pvalue
                                         #In this example, alpha=5%



{ ~kwd1 }
{ ~kwd2 }

theugen/moving_window documentation built on May 31, 2019, 9:51 a.m.