Skip to content

Commit

Permalink
fix cmdcheck notes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjclark committed Jan 2, 2024
1 parent d774a9e commit d807db4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion R/globals.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ utils::globalVariables(c("y", "year", "smooth_vals", "smooth_num",
"param_name", "outcome", "mgcv_plottable",
"term", "data_test", "object", "row_num", "trends_test",
"trend", "trend_series", "trend_y", ".", "gam",
"group", "mod", "row_id", "byvar"))
"group", "mod", "row_id", "byvar", "direction",
"index..time..index"))
6 changes: 3 additions & 3 deletions R/mvgam_formulae.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#' \code{\link[mgcv]{t2}},
#' time-varying effects using \code{\link{dynamic}},
#' monotonically increasing (using `s(x, bs = 'moi')`) or
#' or decreasing splines (using `s(x, bs = 'mod')`; see \code{\link{monotonic}} for
#' or decreasing splines (using `s(x, bs = 'mod')`;
#' see \code{\link{smooth.construct.moi.smooth.spec}} for
#' details), as well as
#' Gaussian Process functions using \code{\link[brms]{gp}},
#' can be added to the right hand side (and \code{.} is not supported in \code{mvgam} formulae).
Expand All @@ -35,8 +36,7 @@
#' \code{\link[mgcv]{jagam}},
#' \code{\link[mgcv]{gam}},
#' \code{\link[mgcv]{s}},
#' \code{\link[stats]{formula}},
#' \code{\link{monotonic}}
#' \code{\link[stats]{formula}}
#' @author Nicholas J Clark
#' @name mvgam_formulae
NULL
2 changes: 1 addition & 1 deletion R/trends.R
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ extract_trend_pars = function(object, keep_all_estimates = TRUE,
if(attr(object$model_data, 'trend_model') %in% c('PWlinear', 'PWlogistic')){
out$delta_trend <- lapply(seq_along(levels(object$obs_data$series)), function(series){
if(object$fit_engine == 'stan'){
delta_estimates <- mvgam:::mcmc_chains(object$model_output, 'delta_trend')[,seq(series,
delta_estimates <- mcmc_chains(object$model_output, 'delta_trend')[,seq(series,
dim(mcmc_chains(object$model_output,
'delta_trend'))[2],
by = NCOL(object$ytimes))]
Expand Down
6 changes: 3 additions & 3 deletions man/mvgam_formulae.Rd

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

Binary file modified src/mvgam.dll
Binary file not shown.

0 comments on commit d807db4

Please sign in to comment.