Giter Club home page Giter Club logo

tidyversity's Issues

Add tidyversity class to model output

Hello!

I really like this package (admittedly after playing around with it for a few minutes). I think a lot of the base R stats functions seem quite dated now, with sometimes non-human friendly print functions. So I really like your efforts to improve this.

Currently, I'm also working on a package that takes a tidy approach to statistical analyses in academia (https://github.com/WillemSleegers/tidystats). I think that our packages are perfectly compatible and I would like to add support for your package in mine.

tidystats takes the output of statistical analyses (like lm()), and makes the output tidy. The result is a table in which each row is a statistic and each column is a useful variable (e.g., the label for the statistic, and the statistic's value). This output can be added to a list, together with additional analyses. Finally, this list can be converted to a simple text file (made possible by the tidy format of each model's output). This list can be shared with others and used for improving the reporting of these statistics.

Much of this is made possible because the output of a statistical test returns an object with a specific class. I can then use this class to figure out which function to run that parses the output into a tidy format. Currently, tidyversity returns objects with the same class as the original stats function (e.g., tidy_regression() and lm() both return an object with class 'lm').

Would it be an idea to add a class label (e.g., 'tidy_lm') to the output? This distinguishes it from the original lm() output and would make it easy for me to add support for tidyversity in tidystats.

I gladly hear your thoughts on this.

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.