Skip to content

Commit

Permalink
examples
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Dec 31, 2024
1 parent 2d9d111 commit 05efe33
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
16 changes: 14 additions & 2 deletions R/rescale_weights.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,22 @@
#' data = d,
#' weights = rescaled_weights
#' )
#' d <- rescale_weights(
#' nhanes_sample,
#' "WTINT2YR",
#' "SDMVSTRA",
#' method = "kish"
#' )
#' result4 <- lme4::glmer(
#' total ~ factor(RIAGENDR) + log(age) + factor(RIDRETH1) + (1 | SDMVPSU),
#' family = poisson(),
#' data = d,
#' weights = rescaled_weights
#' )
#' parameters::compare_parameters(
#' list(result1, result2, result3),
#' list(result1, result2, result3, result4),
#' exponentiate = TRUE,
#' column_names = c("Carle (A)", "Carle (B)", "Kish")
#' column_names = c("Carle (A)", "Carle (B)", "Kish", "Kish (grouped)")
#' )
#' }
#' @export
Expand Down
16 changes: 14 additions & 2 deletions man/rescale_weights.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 05efe33

Please sign in to comment.