Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALQ is not supported for binless() #49

Closed
certara-jcraig opened this issue Sep 7, 2023 · 1 comment
Closed

ALQ is not supported for binless() #49

certara-jcraig opened this issue Sep 7, 2023 · 1 comment

Comments

@certara-jcraig
Copy link
Collaborator

When using binless(), if specifying alq data (either alone or in addition to blq data), the vpc$pctalq data frame is not created for the binless() method e.g.,

library(tidyvpc)
obs_data <- obs_data[MDV == 0]
sim_data <- sim_data[MDV == 0]

# Add LLOQ/ULOQ
obs_data$LLOQ <- obs_data[, ifelse(GENDER == "F", 50, 25)]
obs_data$ULOQ <- obs_data[, ifelse(GENDER == "F", 125, 80)]

vpc  <- 
  observed(obs_data, x = TIME, y = DV ) |> 
  simulated(sim_data, y = DV) |>
  censoring(blq = DV < LLOQ, lloq = LLOQ,
             alq = DV > ULOQ, uloq = ULOQ) |> 
  stratify(~ GENDER)  |>
  binless() |>
  vpcstats()

plot(vpc, censoring.type = "both")
@certara-jcraig
Copy link
Collaborator Author

Closed by #50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant