Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed May 13, 2024
1 parent 0721a6b commit de3a718
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 43 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
^_pkgdown\.yml$
^doc$
^Meta$
^sjmisc\.code-workspace$
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: sjmisc
Type: Package
Encoding: UTF-8
Title: Data and Variable Transformation Functions
Version: 2.8.7.5
Version: 2.8.10
Authors@R: c(person("Daniel", "Lüdecke", role = c("aut", "cre"), email = "d.luedecke@uke.de", comment = c(ORCID = "0000-0002-8895-3206")),
person("Iago", "Giné-Vázquez", role = c("ctb"), email = "i.gine@pssjd.org"),
person("Alexander", "Bartel", role = "ctb", email = "alexander.bartel@fu-berlin.de", comment = c(ORCID = "0000-0002-1280-6138")))
Expand Down
2 changes: 1 addition & 1 deletion R/helpfunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ build_col <- function(x, qs_expr) {
# name or numeric expressions, regular sequences or those looked for with select helpers are selected
# otherwise, they are transmuted
check_qs <- function(is_expr) {
if (class(is_expr) != "call") {
if (!inherits(is_expr, "call")) {
TRUE
} else if (as.character(is_expr)[1] == ":") {
TRUE
Expand Down
18 changes: 0 additions & 18 deletions R/spread_coef.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,6 @@
#' models = map(data, ~lm(neg_c_7 ~ c12hour + c172code, data = .x))
#' ) %>%
#' spread_coef(models)
#'
#' # spread_coef() makes it easy to generate bootstrapped
#' # confidence intervals, using the 'bootstrap()' and 'boot_ci()'
#' # functions from the 'sjstats' package, which creates nested
#' # data frames of bootstrap replicates
#' if (require("sjstats")) {
#' efc %>%
#' # generate bootstrap replicates
#' bootstrap(100) %>%
#' # apply lm to all bootstrapped data sets
#' mutate(
#' models = map(strap, ~lm(neg_c_7 ~ e42dep + c161sex + c172code, data = .x))
#' ) %>%
#' # spread model coefficient for all 100 models
#' spread_coef(models, se = FALSE, p.val = FALSE) %>%
#' # compute the CI for all bootstrapped model coefficients
#' boot_ci(e42dep, c161sex, c172code)
#' }
#' }
#' @export
spread_coef <- function(data, model.column, model.term, se, p.val, append = TRUE) {
Expand Down
18 changes: 0 additions & 18 deletions man/spread_coef.Rd

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

5 changes: 0 additions & 5 deletions vignettes/recodingvariables.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,3 @@ frq(dummy)
## Scoped variants

Where applicable, the recoding-functions in **sjmisc** have "scoped" versions as well, e.g. `dicho_if()` or `split_var_if()`, where transformation will be applied only to those variables that match the logical condition of `predicate`.

## Cheat Sheet

A cheatsheet can be downloaded from the [RStudio cheatsheet collection](https://www.rstudio.com/resources/cheatsheets/).

0 comments on commit de3a718

Please sign in to comment.