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

adding lower bound for pred correction #20

Open
smouksassi opened this issue Sep 29, 2022 · 0 comments
Open

adding lower bound for pred correction #20

smouksassi opened this issue Sep 29, 2022 · 0 comments

Comments

@smouksassi
Copy link

smouksassi commented Sep 29, 2022

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3085712/pdf/12248_2011_Article_9255.pdf
the original paper had the following equations for pred correction on original scale ( not log)
pcYij = lbij +(yij-lbij) *(med(PREDbin) - lbij)/(PREDij-lbij)
when lb = 0
reduces to
pcYij =(yij) *(med(PREDbin) )/(PREDij)

similar to how we allow LLOQ at the observation level we should allow lower bound at observation level

https://github.com/certara/tidyvpc/blob/master/R/vpcstats.R#L729
o$obs[, ypc := (mpred/pred)*y]

on a separate note we might also want to add variance correction

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