Skip to contents

Chi-squared survey tests, wrapper around survey::svychisq()

Usage

svy_test_chisq(
  design,
  var1,
  var2,
  group = NULL,
  na_rm = TRUE,
  statistic = "F",
  ...
)

Arguments

design

A srvyr::design object.

var1

Var name 1.

var2

Var name 2.

group

A quoted or unquoted vector of columns to group by. Default to NULL for no group.

na_rm

Should NAs from var1 and var2 be removed? Default to TRUE.

statistic

See Details below

...

Other parameters to pass to survey::svychisq().

Value

A data frame of the test output

See also

Other test functions: svy_test_student()