Description Usage Arguments Value Note Author(s) Examples
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.
1 | pvalue_control(x, alpha)
|
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. |
The function returns TRUE if pvalue is smaller than the threshold provided (p<alpha), FALSE otherwise.
Observations and bug segnalations are welcome.
Eugenio Thieme, eugen@thieme.it
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 }
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.