diff --git a/R/t_test.R b/R/t_test.R index 61b372c..bcc2073 100644 --- a/R/t_test.R +++ b/R/t_test.R @@ -177,6 +177,8 @@ t_test <- function(data, .calculate_weighted_ttest <- function(dv, grp, mu, paired, alternative, weights, group_labels, data_name) { insight::check_if_installed("datawizard") if (is.null(grp)) { + dat <- stats::na.omit(data.frame(dv, weights)) + colnames(dat) <- c("y", "w") x_values <- dv x_weights <- weights y_values <- NULL diff --git a/_pkgdown.yml b/_pkgdown.yml index 2fb1d7b..8335357 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -33,6 +33,7 @@ reference: - chi_squared_test - kruskal_wallis_test - mann_whitney_test + - t_test - var_pop - title: "Tools for Regression Models"