diff --git a/R/package.R b/R/package.R index 3ea6b7eec..10208cbcf 100644 --- a/R/package.R +++ b/R/package.R @@ -27,6 +27,8 @@ utils::globalVariables(c( "..w", "marginaleffects_lab", "marginaleffects_ter", +"..label_columns", +"marginaleffects_internal_label", ".", "tmp_idx", "comparison", diff --git a/man/comparisons.Rd b/man/comparisons.Rd index 420356be7..3727a5c93 100644 --- a/man/comparisons.Rd +++ b/man/comparisons.Rd @@ -201,13 +201,15 @@ first entry in the error message is used by default.} \item "pairwise": pairwise differences between estimates in each row. \item "reference": differences between the estimates in each row and the estimate in the first row. \item "sequential": difference between an estimate and the estimate in the next row. +\item "meandev": difference between an estimate and the mean of all estimates. +\item "meanotherdev": difference between an estimate and the mean of all other estimates, excluding the current one. \item "revpairwise", "revreference", "revsequential": inverse of the corresponding hypotheses, as described above. } \item Function: \itemize{ \item Accepts an argument \code{x}: object produced by a \code{marginaleffects} function or a data frame with column \code{rowid} and \code{estimate} \item Returns a data frame with columns \code{term} and \code{estimate} (mandatory) and \code{rowid} (optional). -\item The function can also accept and operation on optional input arguments: \code{newdata}, \code{by}, \code{draws}. +\item The function can also accept optional input arguments: \code{newdata}, \code{by}, \code{draws}. \item This function approach will not work for Bayesian models or with bootstrapping. In those cases, it is easy to use \code{posterior_draws()} to extract and manipulate the draws directly. } \item See the Examples section below and the vignette: https://marginaleffects.com/vignettes/hypothesis.html diff --git a/man/hypotheses.Rd b/man/hypotheses.Rd index 3ef8111d1..18ed822d8 100644 --- a/man/hypotheses.Rd +++ b/man/hypotheses.Rd @@ -40,13 +40,15 @@ hypotheses( \item "pairwise": pairwise differences between estimates in each row. \item "reference": differences between the estimates in each row and the estimate in the first row. \item "sequential": difference between an estimate and the estimate in the next row. +\item "meandev": difference between an estimate and the mean of all estimates. +\item "meanotherdev": difference between an estimate and the mean of all other estimates, excluding the current one. \item "revpairwise", "revreference", "revsequential": inverse of the corresponding hypotheses, as described above. } \item Function: \itemize{ \item Accepts an argument \code{x}: object produced by a \code{marginaleffects} function or a data frame with column \code{rowid} and \code{estimate} \item Returns a data frame with columns \code{term} and \code{estimate} (mandatory) and \code{rowid} (optional). -\item The function can also accept and operation on optional input arguments: \code{newdata}, \code{by}, \code{draws}. +\item The function can also accept optional input arguments: \code{newdata}, \code{by}, \code{draws}. \item This function approach will not work for Bayesian models or with bootstrapping. In those cases, it is easy to use \code{posterior_draws()} to extract and manipulate the draws directly. } \item See the Examples section below and the vignette: https://marginaleffects.com/vignettes/hypothesis.html diff --git a/man/predictions.Rd b/man/predictions.Rd index 85bd71234..aeebd9504 100644 --- a/man/predictions.Rd +++ b/man/predictions.Rd @@ -166,13 +166,15 @@ levels. See examples section.} \item "pairwise": pairwise differences between estimates in each row. \item "reference": differences between the estimates in each row and the estimate in the first row. \item "sequential": difference between an estimate and the estimate in the next row. +\item "meandev": difference between an estimate and the mean of all estimates. +\item "meanotherdev": difference between an estimate and the mean of all other estimates, excluding the current one. \item "revpairwise", "revreference", "revsequential": inverse of the corresponding hypotheses, as described above. } \item Function: \itemize{ \item Accepts an argument \code{x}: object produced by a \code{marginaleffects} function or a data frame with column \code{rowid} and \code{estimate} \item Returns a data frame with columns \code{term} and \code{estimate} (mandatory) and \code{rowid} (optional). -\item The function can also accept and operation on optional input arguments: \code{newdata}, \code{by}, \code{draws}. +\item The function can also accept optional input arguments: \code{newdata}, \code{by}, \code{draws}. \item This function approach will not work for Bayesian models or with bootstrapping. In those cases, it is easy to use \code{posterior_draws()} to extract and manipulate the draws directly. } \item See the Examples section below and the vignette: https://marginaleffects.com/vignettes/hypothesis.html diff --git a/man/slopes.Rd b/man/slopes.Rd index 23b0fc237..177e166e4 100644 --- a/man/slopes.Rd +++ b/man/slopes.Rd @@ -145,13 +145,15 @@ first entry in the error message is used by default.} \item "pairwise": pairwise differences between estimates in each row. \item "reference": differences between the estimates in each row and the estimate in the first row. \item "sequential": difference between an estimate and the estimate in the next row. +\item "meandev": difference between an estimate and the mean of all estimates. +\item "meanotherdev": difference between an estimate and the mean of all other estimates, excluding the current one. \item "revpairwise", "revreference", "revsequential": inverse of the corresponding hypotheses, as described above. } \item Function: \itemize{ \item Accepts an argument \code{x}: object produced by a \code{marginaleffects} function or a data frame with column \code{rowid} and \code{estimate} \item Returns a data frame with columns \code{term} and \code{estimate} (mandatory) and \code{rowid} (optional). -\item The function can also accept and operation on optional input arguments: \code{newdata}, \code{by}, \code{draws}. +\item The function can also accept optional input arguments: \code{newdata}, \code{by}, \code{draws}. \item This function approach will not work for Bayesian models or with bootstrapping. In those cases, it is easy to use \code{posterior_draws()} to extract and manipulate the draws directly. } \item See the Examples section below and the vignette: https://marginaleffects.com/vignettes/hypothesis.html