ard_survey_svyttest: ARD Survey t-test

View source: R/ard_survey_svyttest.R

ard_survey_svyttestR Documentation

ARD Survey t-test

Description

Analysis results data for survey t-test using survey::svyttest().

Usage

ard_survey_svyttest(data, by, variables, conf.level = 0.95, ...)

Arguments

data

(survey.design)
a survey design object often created with survey::svydesign()

by

(tidy-select)
column name to compare by

variables

(tidy-select)
column names to be compared. Independent tests will be run for each variable.

conf.level

(double)
confidence level of the returned confidence interval. Must be between c(0, 1). Default is 0.95

...

arguments passed to survey::svyttest()

Value

ARD data frame

Examples


data(api, package = "survey")
dclus2 <- survey::svydesign(id = ~ dnum + snum, fpc = ~ fpc1 + fpc2, data = apiclus2)

ard_survey_svyttest(dclus2, variables = enroll, by = comp.imp, conf.level = 0.9)


cardx documentation built on Sept. 11, 2024, 9:12 p.m.