Skip to content

Commit

Permalink
Back to log
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMostert committed Aug 1, 2024
1 parent 17f69d7 commit 5cbbb97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/blockedCV.R
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ blockedCV <- function(data, options = list(),

} else compsChange <- data$.__enclos_env__$private$Components

compPreds <- formula(paste('~ - 1 +', paste(c(compsChange[predComp], 'olikhoodvar(main = log(olikhoodvar), model = "offset")'), collapse = ' + ')))
compPreds <- formula(paste('~ - 1 +', paste(c(compsChange[predComp], 'olikhoodvar(main = olikhoodvar, model = "offset")'), collapse = ' + ')))
testLike[[1]]$used$effect <- c(testLike[[1]]$used$effect, 'olikhoodvar')

}
Expand Down Expand Up @@ -289,7 +289,7 @@ blockedCV <- function(data, options = list(),
else {

#remove bias here
predForm <- formula(paste0('~exp(', paste(formula_terms, collapse = ' + '), ')'))
predForm <- formula(paste0('~(', paste(formula_terms, collapse = ' + '), ')'))
#change testData to one sf dataset
for(pd in 1:length(testData[[1]])) {

Expand All @@ -299,7 +299,7 @@ blockedCV <- function(data, options = list(),

nIPS <- nrow(data$.__enclos_env__$private$IPS)

testLike[[pd]]$data$olikhoodvar <- c(testPredicts$mean, rep(1, nIPS))
testLike[[pd]]$data$olikhoodvar <- c(testPredicts$mean, rep(0, nIPS))

} else testLike[[pd]]$data$olikhoodvar <- testPredicts$mean

Expand Down

0 comments on commit 5cbbb97

Please sign in to comment.