Skip to content

chi squared test returns NaN if useNA="always" in ds.table #488

Description

@davraam

chi squared test returns NaN if useNA="always" (the default option) in ds.table.

Here is an example with the titanic data:

ds.table(rvar="D$Sex", cvar="D$Survived", report.chisq.tests = TRUE, datasources = connections)

Pearson's Chi-squared test
data: combine.array.all.sources
X-squared = NaN, df = 4, p-value = NA

If useNA is set to "no", the function returns the numeric value of the chi-squared statistic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions