Skip to content

Commit

Permalink
Setting mean logRr to 0 when simulating monotonic calendar time trend
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed Dec 3, 2024
1 parent 445388c commit b188251
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/Simulation.R
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ simulateSccsData <- function(nCases, settings) {
if (!increasing) {
calendarTimeRisk <- -calendarTimeRisk
}
calendarTimeRisk <- calendarTimeRisk - mean(calendarTimeRisk)
}
calendarTimeFun <- splinefun(as.numeric(calendarTime), calendarTimeRisk)
} else {
Expand Down

0 comments on commit b188251

Please sign in to comment.