Coder Social home page Coder Social logo

ddictr's People

Contributors

liud4 avatar omair-a-khan avatar

Watchers

 avatar

ddictr's Issues

Cosmetic changes to chunk wrapper

  • Put Section titles on the headers of each page
  • Put "Variable: " before variable. For example, "Variable: age"
  • Put "Label: " before label. For example, "Label: Age at medhx.date, recalculated"
  • Change "Derivation: " to "Description: "
  • Put "Distribution: " before it plot, and move chunk_wrapper for plot right before summarize_data
  • Provide Lower Unique Values and Highest Unique Values by epoch
  • Update the last chunk title as "IDs of participants with missing values by Epoch: "

https://github.com/fullstackstatistician/ddictR/blob/61b64ddc47b1437806f6cb3598ccfd65ca3cecca/R/create_individual_entry.R#L1

Extract Unit from Metadata

Check whether the raw metadata has unit attribuite
If yes, add unit attribute to the merged rds data. For derived variables, we need to do it one by one.
Then include unit in the codebook.

Format for Numeric Values

In summarize_data, update numeric format using summary statistics across all epochs.

  • Identify the smallest absolute value (denoted at v) in mean and sd, and the determine the format using log10(v).
  • if v is >=10, i.e. log10(v)>=1, then no decimal places;
  • if v is in [0.1, 10), i.e. log10(v) is in [-1, 1], then use format X.X;
  • If v is in [0, 0.1), use the first significant digit after decimal which could be obtained using round(log10(v))+1. For example, np.executive.composite has mean of 0.007003 in Epoch 1. The first significant digit after decimal is the 3rd digit and round(log10(0.007003))+1=3

https://github.com/fullstackstatistician/ddictR/blob/61b64ddc47b1437806f6cb3598ccfd65ca3cecca/R/summarize_data.R#L20

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.