Skip to content

Unable to obtain AUC #287

Answered by billdenney
jeslo328 asked this question in Q&A
Apr 3, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Thanks for sharing a reproducible example with your data. The following should work:

library(tidyverse)
library(PKNCA)

d_raw <- read_tsv("dataset.list.txt")

head(d_raw)

# Remove dosing rows
d_conc <-
  d_raw |>
  filter(EVENT == 1)

o_conc <- PKNCAconc(data = d_conc, DV~TIME|DRUG+ID)
d_intervals <- data.frame(start = 0, end = 24, auclast = TRUE)
o_data <- PKNCAdata(o_conc, intervals = d_intervals)
o_nca <- pk.nca(o_data)
summary(o_nca)

Also, I'm moving this to a discussion since it is more of a question on how to use PKNCA rather than an issue that needs code changes for PKNCA.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jeslo328
Comment options

@billdenney
Comment options

Answer selected by billdenney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #286 on April 03, 2024 16:02.