diff --git a/R/bootstrap_parameters.R b/R/bootstrap_parameters.R index 474731c09..98c284ab7 100644 --- a/R/bootstrap_parameters.R +++ b/R/bootstrap_parameters.R @@ -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 #' @@ -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)) #' } diff --git a/R/p_function.R b/R/p_function.R index 0d913afac..14ee7c94a 100644 --- a/R/p_function.R +++ b/R/p_function.R @@ -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 diff --git a/inst/WORDLIST b/inst/WORDLIST index 6ab528def..70fddfdf6 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -23,6 +23,7 @@ Bundock CFA CMD CNG +CRC Cattell Cattell's CrossValidated @@ -30,6 +31,7 @@ Curently D'Agostino DAS DBSCAN +DG DOI DRR Davison @@ -41,6 +43,7 @@ DoFs Dom Dorie Dupont +DV EFA EGAnet ESS @@ -80,8 +83,11 @@ Hornik Isager ICA IRR +JB +JM JRM Jurs +KJ KMO Kenward Korner @@ -136,6 +142,10 @@ Rocklin Rosseel Rousseeuw Routledge +Rothman +Scand +Senn +Statist SBC SDs SEM diff --git a/man/bootstrap_parameters.Rd b/man/bootstrap_parameters.Rd index 86fb23726..4a3070380 100644 --- a/man/bootstrap_parameters.Rd +++ b/man/bootstrap_parameters.Rd @@ -20,7 +20,8 @@ bootstrap_parameters(model, ...) \arguments{ \item{model}{Statistical model.} -\item{...}{Arguments passed to or from other methods.} +\item{...}{Arguments passed to other methods, like \code{\link[=bootstrap_model]{bootstrap_model()}} or +\code{\link[bayestestR:describe_posterior]{bayestestR::describe_posterior()}}.} \item{iterations}{The number of draws to simulate/bootstrap.} @@ -86,6 +87,11 @@ model <- lm(Sepal.Length ~ Species * Petal.Width, data = iris) 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)) } diff --git a/man/p_function.Rd b/man/p_function.Rd index e2ba72608..f22d64817 100644 --- a/man/p_function.Rd +++ b/man/p_function.Rd @@ -269,8 +269,8 @@ statements" (\emph{Cox and Hinkley 1979: 208}), which conflicts with the Schwede 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 \emph{not} to interpret p-values as dichotomous decisions diff --git a/man/parameters-package.Rd b/man/parameters-package.Rd index 3f8d4c249..b4e466b2c 100644 --- a/man/parameters-package.Rd +++ b/man/parameters-package.Rd @@ -32,25 +32,25 @@ Useful links: } \author{ -\strong{Maintainer}: Daniel Lüdecke \email{d.luedecke@uke.de} (\href{https://orcid.org/0000-0002-8895-3206}{ORCID}) (@strengejacke) +\strong{Maintainer}: Daniel Lüdecke \email{d.luedecke@uke.de} (\href{https://orcid.org/0000-0002-8895-3206}{ORCID}) Authors: \itemize{ - \item Dominique Makowski \email{dom.makowski@gmail.com} (\href{https://orcid.org/0000-0001-5375-9967}{ORCID}) (@Dom_Makowski) + \item Dominique Makowski \email{dom.makowski@gmail.com} (\href{https://orcid.org/0000-0001-5375-9967}{ORCID}) \item Mattan S. Ben-Shachar \email{matanshm@post.bgu.ac.il} (\href{https://orcid.org/0000-0002-4287-4801}{ORCID}) - \item Indrajeet Patil \email{patilindrajeet.science@gmail.com} (\href{https://orcid.org/0000-0003-1995-6531}{ORCID}) (@patilindrajeets) + \item Indrajeet Patil \email{patilindrajeet.science@gmail.com} (\href{https://orcid.org/0000-0003-1995-6531}{ORCID}) \item Søren Højsgaard \email{sorenh@math.aau.dk} - \item Brenton M. Wiernik \email{brenton@wiernik.org} (\href{https://orcid.org/0000-0001-9560-6336}{ORCID}) (@bmwiernik) + \item Brenton M. Wiernik \email{brenton@wiernik.org} (\href{https://orcid.org/0000-0001-9560-6336}{ORCID}) } Other contributors: \itemize{ \item Zen J. Lau \email{zenjuen.lau@ntu.edu.sg} [contributor] - \item Vincent Arel-Bundock \email{vincent.arel-bundock@umontreal.ca} (\href{https://orcid.org/0000-0003-2042-7063}{ORCID}) (@vincentab) [contributor] - \item Jeffrey Girard \email{me@jmgirard.com} (\href{https://orcid.org/0000-0002-7359-3746}{ORCID}) (@jeffreymgirard) [contributor] + \item Vincent Arel-Bundock \email{vincent.arel-bundock@umontreal.ca} (\href{https://orcid.org/0000-0003-2042-7063}{ORCID}) [contributor] + \item Jeffrey Girard \email{me@jmgirard.com} (\href{https://orcid.org/0000-0002-7359-3746}{ORCID}) [contributor] \item Christina Maimone \email{christina.maimone@northwestern.edu} [reviewer] \item Niels Ohlsen (@Niels_Bremen) [reviewer] - \item Douglas Ezra Morrison \email{dmorrison01@ucla.edu} (\href{https://orcid.org/0000-0002-7195-830X}{ORCID}) (@demstats1) [contributor] + \item Douglas Ezra Morrison \email{dmorrison01@ucla.edu} (\href{https://orcid.org/0000-0002-7195-830X}{ORCID}) [contributor] \item Joseph Luchman \email{jluchman@gmail.com} (\href{https://orcid.org/0000-0002-8886-9717}{ORCID}) [contributor] }