From 3cfc1285139bd517936040484937021b8c8e6542 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 17 Dec 2024 23:28:47 +0100 Subject: [PATCH] fix --- R/rescale_weights.R | 6 +++++- man/rescale_weights.Rd | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/R/rescale_weights.R b/R/rescale_weights.R index 162863609..12b839cc2 100644 --- a/R/rescale_weights.R +++ b/R/rescale_weights.R @@ -97,7 +97,11 @@ #' ) #' } #' @export -rescale_weights <- function(data, by, probability_weights, nest = FALSE, method = "carle") { +rescale_weights <- function(data, + by = NULL, + probability_weights = NULL, + nest = FALSE, + method = "carle") { if (inherits(by, "formula")) { by <- all.vars(by) } diff --git a/man/rescale_weights.Rd b/man/rescale_weights.Rd index 90e0727eb..30f62fe6c 100644 --- a/man/rescale_weights.Rd +++ b/man/rescale_weights.Rd @@ -4,7 +4,13 @@ \alias{rescale_weights} \title{Rescale design weights for multilevel analysis} \usage{ -rescale_weights(data, by, probability_weights, nest = FALSE, method = "carle") +rescale_weights( + data, + by = NULL, + probability_weights = NULL, + nest = FALSE, + method = "carle" +) } \arguments{ \item{data}{A data frame.}