Skip to content

Commit

Permalink
various cleanup, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
bbolker committed Feb 5, 2019
1 parent fbe9597 commit 3ef5743
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 16 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: broom.mixed
Type: Package
Title: Tidying Methods for Mixed Models
Version: 0.2.3.9000
Version: 0.2.4
Authors@R: c(
person("Ben", "Bolker", email = "[email protected]",
role = c("aut", "cre"),
Expand Down
3 changes: 2 additions & 1 deletion R/glmmTMB_tidiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ tidy.glmmTMB <- function(x, effects = c("ran_pars", "fixed"),
## - avoid (as.)data.frame

## R CMD check false positives
term <- estimate <- .id <- level <- std.error <- . <- NULL
condsd <- condval <- grp <- grpvar <-
term <- estimate <- .id <- level <- std.error <- . <- NULL

drop.missing <- function(x) x[vapply(x,length,numeric(1))>0]
ss <- stats::coef(summary(x))
Expand Down
14 changes: 7 additions & 7 deletions R/lme4_tidiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ augment.merMod <- function(x, data = stats::model.frame(x), newdata, ...) {
if (missing(newdata)) {
newdata <- NULL
}
ret <- augment_columns(x, data, newdata, se.fit = NULL, ...)
ret <- suppressMessages(augment_columns(x, data, newdata, se.fit = NULL, ...))

# add predictions with no random effects (population means)
predictions <- stats::predict(x, re.form = NA)
Expand Down Expand Up @@ -420,12 +420,12 @@ glance.merMod <- function(x, ...) {
##' geom_vline(xintercept=0,lty=2)+
##' geom_point()+facet_wrap(~variable,scale="free_x")
##' ## emphasize extreme values
##' aa2 <- aa %>% group_by(grp,level) %>%
##' mutate(keep=any(estimate/std.error>2))
##' ## Update caterpillar plot with extreme levels highlighted
##' ## (highlight all groups with *either* extreme intercept *or*
##' ## extreme slope)
##' ggplot(aa2,aes(estimate,level,xmin=lb,xmax=ub,colour=factor(keep)))+
##' aa2 <- group_by(aa,grp,level)
##' aa3 <- mutate(aa2, keep=any(estimate/std.error>2))
##' ## Update caterpillar plot with extreme levels highlighted
##' ## (highlight all groups with *either* extreme intercept *or*
##' ## extreme slope)
##' ggplot(aa3, aes(estimate,level,xmin=lb,xmax=ub,colour=factor(keep)))+
##' geom_errorbarh(height=0)+
##' geom_vline(xintercept=0,lty=2)+
##' geom_point()+facet_wrap(~variable,scale="free_x")+
Expand Down
16 changes: 15 additions & 1 deletion inst/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@
\title{broom.mixed News}
\encoding{UTF-8}

\section{CHANGES IN VERSION 0.2.4}{
\subsection{NEW FEATURES}{
\itemize{
\item \code{gls} tidier gets confint (GH #49)
}
}
\subsection{BUG FIXES}{
\itemize{
\item misc fixes for \code{lme4} tidiers (confint for ran_vals, profile conf intervals fixed)
\item ran_vals works for \code{glmmTMB}
}
}
}

\section{CHANGES IN VERSION 0.2.3}{
\subsection{BUG FIXES}{
\itemize{
Expand All @@ -12,7 +26,7 @@
\item component argument works for random effects in glmmTMB (GH #33: @strengejacke)
}
}
\subsection{NEW FIXES}{
\subsection{NEW FEATURES}{
\itemize{
\item \code{brmsfit} and \code{rstanarm} methods allow
\code{conf.method="HPDinterval"}
Expand Down
12 changes: 6 additions & 6 deletions man/augment.ranef.mer.Rd

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

1 change: 1 addition & 0 deletions tests/testthat/test-lme4.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,4 @@ if (require(lmerTest, quietly = TRUE)) {
})
detach("package:lmerTest")
}

0 comments on commit 3ef5743

Please sign in to comment.