Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 19, 2024
1 parent 846cdfe commit b48a992
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 56 deletions.
40 changes: 24 additions & 16 deletions R/2_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,22 @@
#' @param x A statistical model.
#' @param ci Confidence Interval (CI) level. Default to `0.95` (`95%`).
#' @param dof Number of degrees of freedom to be used when calculating
#' confidence intervals. If `NULL` (default), the degrees of freedom are
#' retrieved by calling [`insight::get_df()`] with approximation method
#' defined in `method`. If not `NULL`, use this argument to override the
#' default degrees of freedom used to compute confidence intervals.
#' @param method Method for computing degrees of freedom for
#' confidence intervals (CI) and the related p-values. Allowed are following
#' options (which vary depending on the model class): `"residual"`,
#' `"normal"`, `"likelihood"`, `"satterthwaite"`, `"kenward"`, `"wald"`,
#' `"profile"`, `"boot"`, `"uniroot"`, `"ml1"`, `"betwithin"`, `"hdi"`,
#' `"quantile"`, `"ci"`, `"eti"`, `"si"`, `"bci"`, or `"bcai"`. See section
#' _Confidence intervals and approximation of degrees of freedom_ in
#' [`model_parameters()`] for further details.
#' confidence intervals. If `NULL` (default), the degrees of freedom are
#' retrieved by calling [`insight::get_df()`] with approximation method defined
#' in `method`. If not `NULL`, use this argument to override the default degrees
#' of freedom used to compute confidence intervals.
#' @param method Method for computing degrees of freedom for confidence
#' intervals (CI) and the related p-values. Allowed are following options (which
#' vary depending on the model class): `"residual"`, `"normal"`, `"likelihood"`,
#' `"satterthwaite"`, `"kenward"`, `"wald"`, `"profile"`, `"boot"`, `"uniroot"`,
#' `"ml1"`, `"betwithin"`, `"hdi"`, `"quantile"`, `"ci"`, `"eti"`, `"si"`,
#' `"bci"`, or `"bcai"`. See section _Confidence intervals and approximation of
#' degrees of freedom_ in [`model_parameters()`] for further details.
#' @param component Model component for which parameters should be shown. See
#' the documentation for your object's class in [`model_parameters()`] or
#' [`p_value()`] for further details, or see section _Model components_.
#' the documentation for your object's class in [`model_parameters()`] or
#' [`p_value()`] for further details, or see section _Model components_.
#' @param iterations The number of bootstrap replicates. Only applies to models
#' of class `merMod` when `method=boot`.
#' of class `merMod` when `method=boot`.
#' @param verbose Toggle warnings and messages.
#' @param ... Additional arguments passed down to the underlying functions.
#' E.g., arguments like `vcov` or `vcov_args` can be used to compute confidence
Expand Down Expand Up @@ -64,14 +63,23 @@ ci.default <- function(x,
ci = 0.95,
dof = NULL,
method = NULL,
iterations = 500,
component = "all",
vcov = NULL,
vcov_args = NULL,
verbose = TRUE,
...) {
# check for valid input
.is_model_valid(x)
.ci_generic(model = x, ci = ci, dof = dof, method = method, ...)
.ci_generic(
model = x,
ci = ci,
dof = dof,
method = method,
component = component,
vcov = vcov,
vcov_args = vcov_args,
...)
}


Expand Down
1 change: 0 additions & 1 deletion R/methods_lme4.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ model_parameters.merMod <- function(model,
}


#' @rdname ci.default
#' @export
ci.merMod <- function(x,
ci = 0.95,
Expand Down
35 changes: 16 additions & 19 deletions man/ci.default.Rd

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

23 changes: 11 additions & 12 deletions man/p_value.Rd

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

15 changes: 7 additions & 8 deletions man/standard_error.Rd

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

0 comments on commit b48a992

Please sign in to comment.