Skip to content

Commit

Permalink
small bug fix in Xp generation for trend_formulae
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Clark committed Apr 3, 2024
1 parent 30b6ad9 commit 75c5ba4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/get_linear_predictors.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ trend_Xp_matrix = function(newdata, trend_map, series = 'all',

trend_test <- newdata
trend_indicators <- vector(length = length(trend_test$time))
for(i in 1:length(trend_test$time)){
trend_indicators[i] <- trend_map$trend[which(trend_map$series ==
trend_test$series[i])]
for(i in 1:length(trend_test$series)){
trend_indicators[i] <- trend_map$trend[which(as.character(trend_map$series) ==
as.character(trend_test$series[i]))]
}
trend_indicators <- as.factor(paste0('trend', trend_indicators))
trend_test$series <- trend_indicators
Expand Down
Binary file modified src/mvgam.dll
Binary file not shown.
Binary file modified tests/testthat/Rplots.pdf
Binary file not shown.

0 comments on commit 75c5ba4

Please sign in to comment.