Git Product home page Git Product logo

philsfmisc's People

Contributors

philsf avatar

Watchers

 avatar

philsfmisc's Issues

Criar um template de relatório

Um template de relatório para documentar todas as escolhas metodológicas, resultados, figuras e conclusões da análise de dados, conforme as lições aprendidas com documentações na indústria

Configure remaining report template styles

Some styles were not configured in the 0.6.1 release:

  • Title (Arial 18, bold)
  • Subtitle (Arial 12, bold)
  • Author (Arial 11)
  • Date (Arial 10)

Automatic paragraphs before/after each of these styles? Current settings:

  • Title 0.85cm / 0.42 cm
  • Subtitle 0.42 cm / 0.42 cm
  • Author/Date 0cm / 0cm

create a gtsummary theme

Create a gtsummary theme that

  • prints % symbol in tables
  • uses mean/SD + t.test by default
  • is consistent with survey objects (mean/SD + t.test)
  • uses survey adjusted chi square by default
  • uses "verbose" CIs (ll to ul)
  • uses 3 digits p-values

Provide a new template: SAP

Create a new Rmarkdown template to create Statistical Analysis Plans (SAP) for future analyses.

Use the same formatting choices as the report template.

Remove all dots (".") from file names

All format.* functions must be changed into format_* so the build check passes.

This, in turn, will require that all packages that depend on philsfmisc be updated accordingly.

Perhaps we can provide aliases to ease this upgrading process.

  • rename functions
  • update README.md

Update the report template styles

The styles doc is undergoing a major overhaul, that will enhance

  • Standard font style
  • Section styles
  • Table display as centered
  • Table format style

As soon as this styles.docx is finished, incorporate this enhancement in the report template used for consulting reports.

Use `roxygen` comments to produce docs

Convert manually created docs to roxygen comments inside each source file.

This will help future iterations of development with the automation tools available in devtools and RStudio.

Find a way to format percentage intervals

The current state of affairs prevents the use of format.pct in format.interval, because format.float returns "NA" for both ends of the interval.

Possible solutions

  • include an argument in format.interval to consider the interval as proportions
  • include a check in format.float to see if the last char is "%"

Build packages warnings: documentation issues

Several documentation warnings are appearing in new builds:

  • argument name mismatches between code and doc
    • format.float
    • cv2logsd
    • cv2logvar
    • geocv
    • geomean
    • geosd
    • logsd2cv
    • logvar2cv
    • predint
  • error in format.float example (F instead of FALSE)
  • error in format.interval example (intentional, but must not run)

Create a function to test if `x` is an interval

Create a function is.interval(x) to check if

  • x is a vector of 2 values
  • each of the values is.numeric()
  • the second value is greater or equal than the first value

Expected return value is.logical().

new function to anonymize dataset

Currently the analytical dataset mockup is being created in a "manual" fashion.
Move this code to a new function

  • output is a dataframe/tibble with the same shape, but id goes from 1:N
  • optional named id col (with a reasonable default "id")
  • "N" argument: boolean for whether or not to expose the actual N or print "N"

geoCV given log-SD

Create a function to compute the CV of log-normal data, given the SD of log-transformed data.

sqrt(exp(lSD ^ 2) - 1)*100

where lSD is sd(log(data))

Note: come up with a descriptive function name!

Package documentation

This repo needs a bare minimum README with

  • package description
  • installation instructions

description sections

  • There are empty description in the following docs
    • cv2logsd
    • cv2logvar
    • geocv
    • geomean
    • is.within
    • logsd2cv
    • logvar2cv

Stardardize CVs as proportions

The standard in R is to provide proportions, and not percentages. Since we can now pretty-format percentages ( #30 ), we can change the API to consistently produce/deal with proportions in all CV functions.

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.