View source: R/t_test_overlap.R
t_test_overlap | R Documentation |
Test for differences in means/percentages between two potentially overlapping groups
t_test_overlap(
survey_design,
y_vars,
na.rm = TRUE,
status,
group_1,
group_2,
null_difference = 0,
alternative = "unequal",
degrees_of_freedom = survey::degf(survey_design) - 1
)
survey_design |
A survey design object created with the |
y_vars |
Names of dependent variables for tests. For categorical variables, percentages of each category are tested. |
na.rm |
Whether to drop cases with missing values for a given dependent variable. |
status |
The name of the variable representing response/eligibility status. |
group_1 |
Vector of values of |
group_2 |
Vector of values of |
null_difference |
The hypothesized difference between the groups' means. Default is |
alternative |
Can be one of the following:
|
degrees_of_freedom |
The degrees of freedom to use for the test's reference distribution.
Unless specified otherwise, the default is the design degrees of freedom minus one,
where the design degrees of freedom are estimated using the |
A data frame describing the difference in group means/percentages and the statistics from the t-test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.