`ceoi` errors when an interval has more than one dose row
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 67/100
Direzione di ricerca
Start with pk.calc.ceoi() and trace how it receives dose rows and interval concentration times; the reprex uses pk.nca() with PKNCAdata(). Add tests for contiguous infusion segments, unchanged single infusion behavior, and an unsampled infusion end. Done when multiple dose rows no longer cause an error and the result is the concentration at the last infusion end, or NA with an exclude reason when that time was not observed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
pk.calc.ceoi() assumes a scalar duration.dose (if (is.na(duration.dose))). With two infusion rows in one interval the whole pk.nca() call stops with an internal error.
Reprex
Uses o_conc and o_dose from Issue 1.
pk.nca(PKNCAdata(o_conc, o_dose,
intervals = data.frame(start = 0, end = Inf, ceoi = TRUE)))
Error ... Please report a bug.
Error with interval start=0, end=Inf: the condition has length > 1
Caused by error in `if (is.na(duration.dose)) ...`:
! the condition has length > 1
Expected
A scalar ceoi: the concentration at the end of the last infusion segment in the interval, max(time.dose + duration.dose) among doses with duration > 0. In the example that is the concentration at 3 h. Return NA with an exclude reason when that time was not observed, matching the current single-dose behaviour.
If the definition is ambiguous (for example, separate infusions with a gap between them), an exclude reason or a documented rule is better than an error.
pk.calc.ceoi() currently compares time with duration.dose directly. It also needs time.dose, so that an infusion starting after the interval start is located correctly.
Tests to add
- Two contiguous segments return the concentration at the end of the second.
- A single infusion gives the same result as before.
- When the end of the infusion was not sampled, the result is
NAwith anexcludereason, not an error.
- Lingua principale
- R
- Stelle
- 86
- Fork
- 32
- Merge medio
- 16h 25m
- PR unite (30g)
- 51
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di humanpred/pknca
-
`pk.calc.time_above()` with lin-up/log-down silently drops segments that end at a negative valueAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
I maintainer di solito rispondono entro 1 giorno
-
Feature request: SDTM input functionsForse già presa @Gero1999 l’ha presa 229 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
humanpred/pknca#516 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Join COSAAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
humanpred/pknca#393 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di humanpred/pknca
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
`latest` pre-release missing: Package run deleted it, then `gh release create` failed with HTTP 403Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
nf-core/differentialabundance#770 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
tidymodels/censored#414 ·