Skip to content

Commit

Permalink
don't include sigma_raw in trend_pars
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjclark committed Sep 3, 2023
1 parent 645a5e5 commit fd67fef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/index-mvgam.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,16 @@ variables.mvgam = function(x, ...){
'ar3', 'A',
'Sigma'), collapse = '|'),
parnames) &
!grepl('sigma_obs', parnames, fixed = TRUE))){
!grepl('sigma_obs', parnames, fixed = TRUE) &
!grepl('sigma_raw', parnames, fixed = TRUE))){
trend_pars <- grepl(paste(c('sigma', 'alpha_gp',
'rho_gp',
'ar1', 'ar2',
'ar3', 'A',
'Sigma'), collapse = '|'),
parnames) &
!grepl('sigma_obs', parnames, fixed = TRUE)
!grepl('sigma_obs', parnames, fixed = TRUE) &
!grepl('sigma_raw', parnames, fixed = TRUE)
trend_pars <- data.frame(orig_name = parnames[trend_pars],
alias = NA)
} else {
Expand Down

0 comments on commit fd67fef

Please sign in to comment.