cut_plevels

cut_plevels(x, pvalue = c(0.01, 0.05, 0.1), verbose = FALSE)

Arguments

x

numeric vector

pvalue

p <= x%, means its significant at x% level

Examples

x <- c(-0.09, -0.4, 0.04, 0.15)
cut_plevels(x, verbose = TRUE)
#>      levels_num      levels_str                                
#> [1,] "(0,0.01]"      "significant increasing at the 0.01 level"
#> [2,] "(0.01,0.05]"   "significant increasing at the 0.05 level"
#> [3,] "(0.05,0.1]"    "significant increasing at the 0.1  level"
#> [4,] "(0.1,1]"       "insignificant increasing"                
#> [5,] "(-1,-0.1]"     "insignificant decreasing"                
#> [6,] "(-0.1,-0.05]"  "significant decreasing at the 0.1  level"
#> [7,] "(-0.05,-0.01]" "significant decreasing at the 0.05 level"
#> [8,] "(-0.01,0]"     "significant decreasing at the 0.01 level"
#> [1] significant decreasing at the 0.1  level
#> [2] insignificant decreasing                
#> [3] significant increasing at the 0.05 level
#> [4] insignificant increasing                
#> 8 Levels: significant increasing at the 0.01 level ...