Code Monkey home page Code Monkey logo

chevron's People

Contributors

6iris6 avatar arkadiuszbeer avatar averissimo avatar ayogasekaram avatar bfalquet avatar cicdguy avatar clarkliming avatar crazycatandy avatar denisovan31415 avatar duanx9 avatar edelarua avatar insights-engineering-bot avatar jialiu0001 avatar knightdave avatar m7pr avatar meixh2021 avatar melkiades avatar nikolas-burkoff avatar pawelru avatar shajoezhu avatar teninq avatar tianfang1121 avatar tomszosz avatar waddella avatar walkowif avatar wangh107 avatar zhux63 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chevron's Issues

AET03 UAT feedback

Thanks @BFalquet , please see issues below,

  1. I find this template incredibly hard to read and follow - is there no way to mimic the actual template structure proposed from GDS?

LBT01 UAT feedback

Many thnaks @BFalquet , please see issues below,

  1. Treatment group needs (N=xx)
  2. Any way we can get parameter at the top as by-group, rather than in the table?
  3. Change from baseline should not be presented for Baseline
  4. Statistics for n=0 should be presented as NE not NA
  5. Column should be Value at Visit and not Analysis Value

DMT01 UAT feedback

  • Header should include in notes that BWGHTSI needs to be merged into ADSL before running
  • Should the user be able to format the appearance of the variable label in Chevron (eg. Age to appear as "Age (yr)" and should we have the defaults built in?
  • Should formatting of values and order of values be done inside or outside of Chevron (eg. Gender to appear as Male / Female) and should we have defaults built in?
  • Template suggests a space between each variable presented, is this possible?
  • If a variable has 0 count, it is dropped. Should there be some warning or message to user that this is happening?

DST01 UAT feedback

Thanks @BFalquet , please see feedback below

  1. There is no need to call in ADAE - this should be removed
  2. When running with ADAE I get following error? Error: Assigned data varvec must be compatible with existing data. Existing data has 18 rows.Assigned data has 0 rows.Only vectors of size 1 are recycled.

add pkgdown configuration

see other NEST projects for an example

do not save the docs folder, i.e. add it to the .gitignore

AET02 UAT feedback

  • No titles appearing (DMT01 has titles, should we expect appear in all?)
  • Can we have space between each SOC?
  • Should header first describe the 3 versions available at top?
  • If data not available a null report should be generated (and not error)

General Chevron Queries

High Priority

  1. How will formatting of Trt Groups be applied (incl. wrapping suggestion if needed)? Outside of Chevron?
  2. I still like the idea of defining in Chevron for each template whether we expect Planned or Actual Trt, and this be defined with a var at a global level - could we discuss?
  3. Each dataset needs df_explicit_na applied to them - need a dm_explicit_na - and where is this done?
  4. Set-up of dm and keys could be standardised, part of Chevron? Also a new way for many to be working with data manipulation - this ok?
  5. COVID filter flag is based on ADSUB - do we need to think how users would attach to ADSL ahead of filtering?
  6. Reporting conventions not being followed - do we strictly apply or discuss/challenge? Example display of NE when stat not computable, dp one more for mean/median/SD, etc.
  7. General - where is filtering / titles+foots being done now, in Chevron or outside and how much do we need to be testing?

Low Priority

  1. If a number is to 1d.p. (eg. %), can we set to 25.0 rather than limiting down to 25? Is this an R or rtables limitation?
  2. Can we get alignment within brackets (eg. show 2.5% in brackets as ( 2.5%) rather than (2.5%))
  3. If filtered data does not generate a report, a null report is required to be produced - is that Chevron or outside?
  4. If data is not present in a treatment group, how can we still control presentation of the treatment group (eg. AE tables to show 0 events)?
  5. Flexibility of label of Patient to be changeable to Subject or Participant?
  6. Is there a background dataset that can be put forwards for QC?

@insightsengineering/chevron

AET01 Table

Goal

To implement AET01 where

  • the analysis population: AP / IT / Any population filter - Default SE
  • Column Variables: TRT01P / ARM / TRT01A / Any ADSL variable - Default ACTARM
  • Column Totals: All Patients / Any pooling - Default NONE
  • Analysis Concepts: "Severe AE" interchangeable with "Grade 3-5 AE"
    Incorporate any variable/flag from ADAE
  • Default list
    Total number of patients with at least one AE
    Total number of AEs
    Total number of deaths
    Total number of patients withdrawn from study due to an AE
    Total number of patients with at least one
    AE with fatal outcome
    Serious AE
    Serious AE leading to withdrawal from treatment
    Serious AE leading to dose modification/interruption
    Related Serious AE
    AE leading to withdrawal from treatment
    AE leading to dose modification/ interruption
    Related AE
    Related AE leading to withdrawal from treatment
    Related AE leading to dose modification/interruption
    Severe AE (at greatest intensity)

Note

Above to be default AET01_1 with preprocessing step adding these temp flags to adsl and user selecting what they want to keep. Flexibility for user to add own categories if study specific variations
AET01_2 includes Medical Concepts section which would be user-driven and based on SMQ/CQ adae variables

EXT01 and LBT01 UAT feedback

EXT01

  • Example shown in vignette is not accurate, also ANL01FL is not relevant subset
    (see n, maybe filter by drug in PARCAT2, one table by drug)
    (filter for PARCAT1 == "OVERALL" )
  • How are we defining the variables to include? Is this by user filtering?
    => filtered inside the function (for now)
  • I do not understand EXT01_2, think we need a rethink on how AVALCAT is included?

LBT01

  • Missing N in treatment header
    => should be under ACTARM (not CHG or AVAL)
  • How is precision controlled/will be controlled? Different tests require different precision
    => add info to study object ?
    "A reasonable level of precision for means, SDs, and medians is one digit more than the level of precision of the test. Present the minimum and maximum to the level of precision of the test."
  • Column headers do not match standard

study object guidance vignette

to be started and discussed

I suggest to start with listing the different study objects

  • efficacy
  • safety
  • etc...

and then list all the study object members that we currently have and their meaning.

Maintain title subtitle and footnotes when binding tables

the header disappears when tables are bound together.
Use the logic:

t2 <- basic_table(title = "my title", subtitles = "my subtitle", main_footer = "main footer") %>% split_cols_by("ACTARM") %>% add_colcounts() %>% add_overall_col(label = "All patients")
t2 %>% add_existing_table(t1) %>% build_table(adsl)

the problem exists in

  • aet01_1
  • dst01_1
  • dst01_2
  • dst01_3

add to README how chevorn in intended to be used

library(chevron)

tbl_dm <- dmt01_1(adsl, 
                  summaryvars = c("AGE", "SEX", "RACE"),
                  deco = list(
                    title = "Demographic and Baseline Characteristics - Intent-to-Treat Population",
                    subtitles = "Study: Sample Study with Synthetic Data, Cutoff Date: 2021-10-28",
                    main_footer = "The tables is build using synthetic data."
                  ))

export_as_txt(tbl_dm__IT, file = "outputs/tbl_dm.txt", paginate = TRUE, lpp = 40,  min_siblings = 2)

reorder argument

to have adsl as first argument in every table generating function (when necessary).

Revert to dplyr pipe

  • in bash navigate to R folder of package
    for x in *.R ; do sed -i 's/|>/%>%/g' "$x" ; done

  • import magrittr pipe operator

EXT01 UAT feedback

Thanks @BFalquet , please see issues below,

  1. Example looks wrong, n too high?
  2. When running on my study data i get following error - Error in assert_colnames(adex, summaryvars) : Variable(s) not a column name in adex : AVAL

Fix the decorator

Title & subtitles generated by the decorator function are still WIP.
The current system to exclude total column inadvertently removes the title section.

Various Changes

  • update DESCRIPTION
  • update README.md
  • use |> instead of %>%
  • update R CMD check automation

remove errors

R CMD Check needs to 0 Errors 0 Warnings 0 Notes

so that automation passes

handle missing variables

Modify dmt01 to provide an understandable error message when the variable names passed to the summaryvars argument of are not present in the dataset passed through the ad_bl argument.

Should the program default to existing variable names or halt execution?
=> halting execution is probably safer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.