Skip to content

Commit

Permalink
bootstrap type in parameters() (#1021)
Browse files Browse the repository at this point in the history
* bootstrap type in parameters()
Fixes #536

* typos, wordlist
  • Loading branch information
strengejacke authored Oct 6, 2024
1 parent 1ff5ddf commit 9ee1a56
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 12 deletions.
7 changes: 7 additions & 0 deletions R/bootstrap_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#' or `"all"` to compute all tests. For each "test", the corresponding
#' **bayestestR** function is called (e.g. [bayestestR::rope()] or
#' [bayestestR::p_direction()]) and its results included in the summary output.
#' @param ... Arguments passed to other methods, like [`bootstrap_model()`] or
#' [`bayestestR::describe_posterior()`].
#' @inheritParams bootstrap_model
#' @inheritParams bayestestR::describe_posterior
#'
Expand Down Expand Up @@ -40,6 +42,11 @@
#' b <- bootstrap_parameters(model)
#' print(b)
#'
#' # different type of bootstrapping
#' set.seed(2)
#' b <- bootstrap_parameters(model, type = "balanced")
#' print(b)
#'
#' est <- emmeans::emmeans(b, trt.vs.ctrl ~ Species)
#' print(model_parameters(est))
#' }
Expand Down
4 changes: 2 additions & 2 deletions R/p_function.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@
#' and Hjort confidence distribution school. However, if you view interval
#' estimates as being intervals of values being consistent with the data,
#' this comes close to the idea of (epistemic) probability. We do not believe that
#' these two pardigms contradict or exclude each other. Rather, the aim is to
#' emphasise one point of view or the other, i.e. to place the linguistic
#' these two paradigms contradict or exclude each other. Rather, the aim is to
#' emphasize one point of view or the other, i.e. to place the linguistic
#' nuances either on 'compatibility' or 'probability'.
#'
#' The main take-away is *not* to interpret p-values as dichotomous decisions
Expand Down
10 changes: 10 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ Bundock
CFA
CMD
CNG
CRC
Cattell
Cattell's
CrossValidated
Curently
D'Agostino
DAS
DBSCAN
DG
DOI
DRR
Davison
Expand All @@ -41,6 +43,7 @@ DoFs
Dom
Dorie
Dupont
DV
EFA
EGAnet
ESS
Expand Down Expand Up @@ -80,8 +83,11 @@ Hornik
Isager
ICA
IRR
JB
JM
JRM
Jurs
KJ
KMO
Kenward
Korner
Expand Down Expand Up @@ -136,6 +142,10 @@ Rocklin
Rosseel
Rousseeuw
Routledge
Rothman
Scand
Senn
Statist
SBC
SDs
SEM
Expand Down
8 changes: 7 additions & 1 deletion man/bootstrap_parameters.Rd

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

4 changes: 2 additions & 2 deletions man/p_function.Rd

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

14 changes: 7 additions & 7 deletions man/parameters-package.Rd

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

0 comments on commit 9ee1a56

Please sign in to comment.