Comments (2)
A value level validation use case, where admiral
is used to validate a small chunk of the data:
- validate a parameter by using
admiral::derive_param_computed
. - Derivation text: derive new parameter/records for
ADEX.PARAMCD = ADPCYMG
(Actual Dose per Cycle) based on existing parameters - Actual Dose per Cycle (ADPCYMG) = Total Amount of Dose (TOTDOSE) / Number of Cycles (NUMCYC); admiral::derive_param_computed
can add a parameter computed from the analysis value of other parameters.
In this example,ADEX.AVAL (where ADEX.PARAPMCD = ADPCYMG)
= ADEX.AVAL (where ADEX.PARAPMCD = TOTDOSE) / ADEX.AVAL (where ADEX.PARAPMCD = NUMCYC)
# read in data
path_ads <- "xxxx"
adex <- haven::read_sas(paste0(path_ads, "adex.sas7bdat")) %>%
select(USUBJID, PARAM, PARAMCD, AVAL)
# subset input data to PARAMCD = "TOTDOSE", "NUMCYC"
adex_TOTDOSE_NUMCYC <- adex %>% filter(PARAMCD %in% c("TOTDOSE", "NUMCYC"))
# admiral::derive_param_computed()
val <-
derive_param_computed(
adex_TOTDOSE_NUMCYC,
by_vars = exprs(USUBJID),
parameters = c("TOTDOSE", "NUMCYC"),
analysis_value = AVAL.TOTDOSE / AVAL.NUMCYC,
set_values_to = exprs(
PARAMCD = "ADPCYMG",
PARAM = "Actual Dose per Cycle (mg)"
)
)
# compare with primary
diffdf::diffdf(adex %>% filter(PARAMCD == "ADPCYMG"),
val %>% filter(PARAMCD == "ADPCYMG"),
keys = c("USUBJID", "PARAMCD"))
from blog.
Love this already - we got a our first post! I was thinking that maybe we should to 4 posts to fill out the site and keep it form looking sad - then switch to 1 every two weeks. @pharmaverse/commswg
from blog.
Related Issues (20)
- Blog Post: ADaM Workflow (templates, admiraldiscovery, cheatsheet)
- General Issue: Experimenting with Docker Image for Contributor HOT 4
- Blog Post: Short expository post on the admiral `filter_*` functions
- Blog Post: TMC release to CRAN
- Blog Post: xportr 0.4.0 blog post
- Bug: PR is failing CICD check HOT 1
- Blog Post: Inside Pharmaverse
- Re-skin blog site to be similar to examples or core pharmaverse site
- Disclaimer: Insert into all and future posts HOT 6
- Blog Post: Tips for first time open source contributors
- General Issue: Add pharmaverse hex to the tab icon
- General Issue: tidy up "pharmaverse" capitalisation across the blog
- Revisit the tags and clean them up. probably less package specific and more general themes?
- Blog Post: How fast is it to make a teal app?
- Blog Post: My experience as a new {admiral} developer HOT 7
- Blog Post: De-Mystifying R Programming in Clinical Trials HOT 1
- Documentation: Add mailshot form link to blog sidebar
- General Issue: Let people know about the newsletter HOT 1
- Blog Post: Brief mentions of Clinical Reporting and related packages for Shiny Conference
- Rethink Project Board to meet delivarables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.