Running examples in ‘powerAnalysis-Ex.R’ failed
The error most likely occurred in:

> ### Name: ES.chisq.assoc
> ### Title: Compute effect size of chi-squared test of association
> ### Aliases: ES.chisq.assoc
> 
> ### ** Examples
> 
> counts <- matrix(c(225,125,85,95),nrow=2,byrow=TRUE)
> ES.chisq.assoc(ct=counts)
Error in any(ct < 0) || is.na(ct) : 
  'length = 4' in coercion to 'logical(1)'
Calls: ES.chisq.assoc
Execution halted
Running examples in ‘powerAnalysis-Ex.R’ failed
The error most likely occurred in:

> ### Name: ES.chisq.assoc
> ### Title: Compute effect size of chi-squared test of association
> ### Aliases: ES.chisq.assoc
> 
> ### ** Examples
> 
> counts <- matrix(c(225,125,85,95),nrow=2,byrow=TRUE)
> ES.chisq.assoc(ct=counts)
Error in any(ct < 0) || is.na(ct) : 
  'length = 4' in coercion to 'logical(1)'
Calls: ES.chisq.assoc
Execution halted