atorus-research / ardis Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
@statasaurus can you give pseudocode of how you'd want this to work
Underlying issue is that if you run add_layer for the same layer twice, you get 2 layers.
Just want to make this informative and clear for users that might not understand completely.
This works for making totals columns
demog_ard <- adsl %>%
tardis_table(treat_var = TRT01A, where = SAFFL == "Y") %>%
add_total_group(group_name = "Total")
# Now let's add some variables we want. First we are going to start with AGE
demog_ard %>%
add_layer(
group_count(target_var = AGEGR1, by = "Age (years)")
)
# To see how this looks we are going to use the build function to build the ARD
demog_ard %>%
build()
But this doesn't
demog_ard <- adsl %>%
tardis_table(treat_var = TRT01A, where = SAFFL == "Y")
# Now let's add some variables we want. First we are going to start with AGE
demog_ard %>%
add_layer(
group_count(target_var = AGEGR1, by = "Age (years)")
)
# To see how this looks we are going to use the build function to build the ARD
demog_ard %>%
add_total_group(group_name = "Total") %>%
build()
I will note that if you make desc layers it works fine either way
Make it more transparent that a Big N is being used as a separate denom. Currently, the logic is:
The overarching idea is to be able to make Big N calculations reusable between separate ARDs, so you calculate once and use many times.
Core requirements of the feature:
Rename the function to reflect it doesn't make tables, but just ards
This doesn't work
adsl <- haven::read_xpt(url("https://github.com/phuse-org/TestDataFactory/raw/main/Updated/TDF_ADaM/adsl.xpt"))
# Lets set up our ard. First we are going to define the data source and
# important variables
demog_ard <- adsl %>%
tardis_table(treat_var = TRT01A, where = SAFFL == "Y")
# Now let's add some variables we want. First we are going to start with AGE
demog_ard %>%
add_layer(
group_desc(target_var = AGE, by = "Age (years)")
) %>%
build()
But this does
adsl %>%
tardis_table(treat_var = TRT01A, where = SAFFL == "Y") %>%
add_layer(
group_desc(target_var = AGE, by = "Age (years)")
) %>%
build()
Method of caching and ARD metadata as YAML or JSON object to load or unload a ardis object
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.