Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 1, 2024
1 parent d451803 commit c76b5f2
Show file tree
Hide file tree
Showing 12 changed files with 180 additions and 36 deletions.
37 changes: 27 additions & 10 deletions R/1_model_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
#' the number of digits for the output. If `s_value = TRUE`, the p-value will
#' be replaced by the S-value in the output (cf. _Rafi and Greenland 2020_).
#' `pd` adds an additional column with the _probability of direction_ (see
#' [bayestestR::p_direction()] for details). `groups` can be used to group
#' [`bayestestR::p_direction()`] for details). `groups` can be used to group
#' coefficients. It will be passed to the print-method, or can directly be used
#' in `print()`, see documentation in [print.parameters_model()]. Furthermore,
#' see 'Examples' in [model_parameters.default()]. For developers, whose
#' in `print()`, see documentation in [`print.parameters_model()`]. Furthermore,
#' see 'Examples' in [`model_parameters.default()`]. For developers, whose
#' interest mainly is to get a "tidy" data frame of model summaries, it is
#' recommended to set `pretty_names = FALSE` to speed up computation of the
#' summary table.
Expand Down Expand Up @@ -331,10 +331,11 @@ model_parameters <- function(model, ...) {
parameters <- model_parameters


#' Parameters from (General) Linear Models
#' @title Parameters from (General) Linear Models
#' @name model_parameters.default
#'
#' Extract and compute indices and measures to describe parameters of (general)
#' linear models (GLMs).
#' @description Extract and compute indices and measures to describe parameters
#' of (generalized) linear models (GLMs).
#'
#' @param model Model object.
#' @param ci Confidence Interval (CI) level. Default to `0.95` (`95%`).
Expand Down Expand Up @@ -407,14 +408,25 @@ parameters <- model_parameters
#' `$Parameter` column of the parameters table to get the exact parameter
#' names.
#' @param ... Arguments passed to or from other methods. For instance, when
#' `bootstrap = TRUE`, arguments like `type` or `parallel` are
#' passed down to `bootstrap_model()`.
#' `bootstrap = TRUE`, arguments like `type` or `parallel` are passed down to
#' `bootstrap_model()`. Further non-documented arguments are `digits`,
#' `p_digits`, `ci_digits` and `footer_digits` to set the number of digits for
#' the output. If `s_value = TRUE`, the p-value will be replaced by the
#' S-value in the output (cf. _Rafi and Greenland 2020_). `pd` adds an
#' additional column with the _probability of direction_ (see
#' [`bayestestR::p_direction()`] for details). `groups` can be used to group
#' coefficients. It will be passed to the print-method, or can directly be
#' used in `print()`, see documentation in [`print.parameters_model()`].
#' Furthermore, see 'Examples' for this function. For developers, whose
#' interest mainly is to get a "tidy" data frame of model summaries, it is
#' recommended to set `pretty_names = FALSE` to speed up computation of the
#' summary table.
#' @param drop See `keep`.
#' @param verbose Toggle warnings and messages.
#' @inheritParams standard_error
#'
#' @seealso [`insight::standardize_names()`] to
#' rename columns into a consistent, standardized naming scheme.
#' @seealso [`insight::standardize_names()`] to rename columns into a
#' consistent, standardized naming scheme.
#'
#' @inheritSection model_parameters Confidence intervals and approximation of degrees of freedom
#'
Expand All @@ -441,6 +453,11 @@ parameters <- model_parameters
#' # different p-value style in output
#' model_parameters(model, p_digits = 5)
#' model_parameters(model, digits = 3, ci_digits = 4, p_digits = "scientific")
#'
#' # report S-value or probability of direction for parameters
#' model_parameters(model, s_value = TRUE)
#' model_parameters(model, pd = TRUE)
#'
#' \donttest{
#' # logistic regression model
#' model <- glm(vs ~ wt + cyl, data = mtcars, family = "binomial")
Expand Down
16 changes: 14 additions & 2 deletions R/methods_lme4.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,20 @@
#' intervals will be included. Set explicitly to `TRUE` or `FALSE` to enforce
#' or omit calculation of confidence intervals.
#' @param ... Arguments passed to or from other methods. For instance, when
#' `bootstrap = TRUE`, arguments like `type` or `parallel` are
#' passed down to `bootstrap_model()`.
#' `bootstrap = TRUE`, arguments like `type` or `parallel` are passed down to
#' `bootstrap_model()`. Further non-documented arguments are `digits`,
#' `p_digits`, `ci_digits` and `footer_digits` to set the number of digits for
#' the output. If `s_value = TRUE`, the p-value will be replaced by the
#' S-value in the output (cf. _Rafi and Greenland 2020_). `pd` adds an
#' additional column with the _probability of direction_ (see
#' [`bayestestR::p_direction()`] for details). `groups` can be used to group
#' coefficients. It will be passed to the print-method, or can directly be
#' used in `print()`, see documentation in [`print.parameters_model()`].
#' Furthermore, see 'Examples' in [`model_parameters.default()`]. For
#' developers, whose interest mainly is to get a "tidy" data frame of model
#' summaries, it is recommended to set `pretty_names = FALSE` to speed up
#' computation of the summary table.
#'
#' @inheritParams model_parameters.default
#' @inheritParams model_parameters.stanreg
#'
Expand Down
15 changes: 13 additions & 2 deletions man/model_parameters.averaging.Rd

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

15 changes: 13 additions & 2 deletions man/model_parameters.cgam.Rd

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

28 changes: 22 additions & 6 deletions man/model_parameters.default.Rd

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

15 changes: 13 additions & 2 deletions man/model_parameters.glht.Rd

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

15 changes: 13 additions & 2 deletions man/model_parameters.htest.Rd

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

15 changes: 13 additions & 2 deletions man/model_parameters.merMod.Rd

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

15 changes: 13 additions & 2 deletions man/model_parameters.mlm.Rd

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

15 changes: 13 additions & 2 deletions man/model_parameters.rma.Rd

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

15 changes: 13 additions & 2 deletions man/model_parameters.zcpglm.Rd

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

Loading

0 comments on commit c76b5f2

Please sign in to comment.