Skip to content

Commit

Permalink
Fixed a small bug which caused strange AIF when interpolating parent …
Browse files Browse the repository at this point in the history
…fraction with no early time points
  • Loading branch information
mathesong committed Aug 15, 2024
1 parent a586fa2 commit 3f31827
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/kinfitr_blooddata.R
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,12 @@ bd_extract_pf <- function(blooddata,
return(pf)
}

# For pred and interp, we want interpolation to start at 1 at time 0
if(!(0 %in% pf$time)) {
pf <- rbind(c(0,1),
pf)
}

blood <- bd_extract_bpr(blooddata, startTime, stopTime, what = "pred")

## Interp
Expand Down

0 comments on commit 3f31827

Please sign in to comment.