getAlpha: no visible global function definition for 'pbinom'
kfweOrd: no visible global function definition for 'qnbinom'
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.
getAlpha: no visible global function definition for ‘pbinom’
kfweOrd: no visible global function definition for ‘qnbinom’
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.
getAlpha: no visible global function definition for ‘pbinom’
kfweOrd: no visible global function definition for ‘qnbinom’
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.
Running examples in ‘someKfwer-Ex.R’ failed
The error most likely occurred in:

> ### Name: someKFWER-package
> ### Title: Controlling the k-FWER (Generalized Familywise Error Rate)
> ### Aliases: someKfwer-package
> ### Keywords: package htest
> 
> ### ** Examples
> 
> set.seed(13)
> y=matrix(rnorm(3000),3,1000)+2                      #create toy data
> p=apply(y,2,function(y) t.test(y)$p.value)          #compute p-values
> M2=apply(y^2,2,mean)                                #compute ordering criterion
> 
> kord=kfweOrd(p,k=5,ord=M2)                          #ordinal procedure
Ordered k-FWER procedure
 1000 tests, k=5, alpha=0.01, individual alpha threshold=0.01
 125 jumps allowed
 32 rejections

> kgr=kfweGR(p,k=5)                                   #Guo and Romano
Guo and Romano k-FWER Step Down procedure
 1000 tests, k=5, alpha=0.01
 0.0013057 individual alpha threshold
 23 rejections

> 
> kord=kfweOrd(p,k=5,ord=M2,GD=TRUE)                  #ordinal procedure (any dependence)
Error in (h == 0) && (ps <= alpha1) : 
  'length = 1000' in coercion to 'logical(1)'
Calls: kfweOrd
Execution halted
getAlpha: no visible global function definition for ‘pbinom’
kfweOrd: no visible global function definition for ‘qnbinom’
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.
Running examples in ‘someKfwer-Ex.R’ failed
The error most likely occurred in:

> ### Name: someKFWER-package
> ### Title: Controlling the k-FWER (Generalized Familywise Error Rate)
> ### Aliases: someKfwer-package
> ### Keywords: package htest
> 
> ### ** Examples
> 
> set.seed(13)
> y=matrix(rnorm(3000),3,1000)+2                      #create toy data
> p=apply(y,2,function(y) t.test(y)$p.value)          #compute p-values
> M2=apply(y^2,2,mean)                                #compute ordering criterion
> 
> kord=kfweOrd(p,k=5,ord=M2)                          #ordinal procedure
Ordered k-FWER procedure
 1000 tests, k=5, alpha=0.01, individual alpha threshold=0.01
 125 jumps allowed
 32 rejections

> kgr=kfweGR(p,k=5)                                   #Guo and Romano
Guo and Romano k-FWER Step Down procedure
 1000 tests, k=5, alpha=0.01
 0.0013057 individual alpha threshold
 23 rejections

> 
> kord=kfweOrd(p,k=5,ord=M2,GD=TRUE)                  #ordinal procedure (any dependence)
Error in (h == 0) && (ps <= alpha1) : 
  'length = 1000' in coercion to 'logical(1)'
Calls: kfweOrd
Execution halted
getAlpha: no visible global function definition for 'pbinom'
kfweOrd: no visible global function definition for 'qnbinom'
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.
getAlpha: no visible global function definition for ‘pbinom’
kfweOrd: no visible global function definition for ‘qnbinom’
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.
getAlpha: no visible global function definition for ‘pbinom’
kfweOrd: no visible global function definition for ‘qnbinom’
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.
getAlpha: no visible global function definition for ‘pbinom’
kfweOrd: no visible global function definition for ‘qnbinom’
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.
getAlpha: no visible global function definition for ‘pbinom’
kfweOrd: no visible global function definition for ‘qnbinom’
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.
getAlpha: no visible global function definition for 'pbinom'
kfweOrd: no visible global function definition for 'qnbinom'
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.
getAlpha: no visible global function definition for ‘pbinom’
kfweOrd: no visible global function definition for ‘qnbinom’
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.
getAlpha: no visible global function definition for ‘pbinom’
kfweOrd: no visible global function definition for ‘qnbinom’
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.
getAlpha: no visible global function definition for 'pbinom'
kfweOrd: no visible global function definition for 'qnbinom'
Undefined global functions or variables:
  pbinom qnbinom
Consider adding
  importFrom("stats", "pbinom", "qnbinom")
to your NAMESPACE file.