Skip to content

NickCH-K/LOST

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

THIS REPO IS MOVING TO https://github.com/LOST-STATS/LOST-STATS.github.io NO NEED TO EDIT THIS REPO ANY MORE

LOST: THE LIBRARY OF STATISTICAL TECHNIQUES

Welcome to the LOST wiki!

The Library of Statistical Techniques (LOST) is a publicly-editable Wiki with a goal of making it easy to execute statistical techniques in statistical software. You can go to the wiki itself here.

Each page of the wiki contains a statistical technique - which may be an estimation method, a data manipulation or cleaning method, a method for presenting or visualizing results, or any of the other kinds of things that statistical software typically does.

For each of those techniques, the LOST page will contain code for performing that method in a variety of packages and languages. It may also contain information (or links) with thorough descriptions of the method, but the focus here is on implementation. How can you do it in your language of choice? If there are multiple ways, how are those ways different? Is the way you used to do it outdated, or does it do something unexpected? What's the R equivalent of that command you know about in Stata or SAS, or vice versa?

This README file is a set of instructions for contributing to LOST

HOW TO CONTRIBUTE

  1. Get a GitHub account. You do not need to know Git to contribute to LOST, but you do need a GitHub account.
  2. Read the Guide to Editing Wiki Content which will show the syntax that is used on GitHub Wiki pages.
  3. Read the below LOST Writing Guide, which shows what a good LOST page looks like from top to bottom. Even if you are just adding another language to an existing page, be sure to read the Implementations section at the bottom.
  4. Go to the LOST Wiki, find a page that needs to be expanded, and add more content. Or find one that doesn't exist but should (perhaps on the Desired Nonexistent Pages list, and write it yourself!
  5. If you've created a new page, be sure to add it to one of the categories pages, which you can see on the sidebar, like Estimation Techniques. If you've written a Desired Nonexistent Page, be sure to remove it from the list. Or, if your page links to some new nonexistent pages, add those to the list!

LOST WRITING GUIDE

A LOST page is intended to be a set of instructions for performing a statistical technique, where "statistical technique" is broadly defined as "the things you do in statistical software", which includes everything from loading data to estimating models to cleaning data to visualization to reproducible notebooks.

After someone reads a LOST page, they should have a decent idea of:

  • How to implement at least a basic version of what they want to do in the language/software they're using
  • What common pitfalls there might be in what they're doing
  • What are the pros and cons of meaningfully-different ways of doing the same thing, if relevant
  • Given what they're doing, what else should they consider doing (for example, if they're running a regression discontinuity design, you might suggest they also run a test for bunching on either side of the cutoff)

Things to remember while writing:

  • Be as clear as possible. You're writing a set of instructions, in effect. People should be able to follow them.
  • The technical ability of the reader may vary by page. People reading a LOST page about how to calculate a mean probably have little experience with their software and will need a lot of hand-holding. You can assume that people reading a LOST page about Markov-Chain Monte Carlo methods probably already have a fairly solid background.

CREATING A LOST PAGE

When starting a LOST page, you should copy the New Page Template. There are four main sections of a LOST page:

Introduction

This is an introduction to the technique. Most of the time this will be just a few sentences about what it is and does, and perhaps why it is used. However, in cases of more niche or complex material, there may be a reason to include more detailed information or general non-language-specific instructions here. In general, however, for more detailed explanations or discussions of statistical properties, you can always just link to an outside trusted source like Wikipedia or a (non-paywalled) academic paper.

Math is not supported. Generally, you can refer to terms by simply putting them in bold. If an equation is necessary, create the equation as an image on this page and include the equation as an image.

Keep in Mind

This is a list of details and reminders for people using the method, especially if they are not yet an expert at it or if the detail is not well-known. This may include:

  • Important assumptions that an estimation method makes.
  • Notes about interpreting the results.
  • Settings where the technique seems like it might be a good idea, but actually isn't.
  • Features of the technique that might surprise users or be unexpected.
  • Rules of thumb for use ("you will want to set the number of bootstrap samples to at least 1,000 (citation)")

Also Consider

This is a list of other techniques that are commonly used in addition to this page's technique, or as an alternative to this page's technique. If not obvious, include a very brief explanation of why you might want to use that other technique in addition to/instead of the current one. Note that you can link to another LOST page even if that page doesn't exist yet. Maybe it will inspite someone to write it!

For example, pages about estimation techniques might list standard robustness tests to be used in addition to the technique, or adjustments to standard errors they might want to use. A page about a data visualization technique might include a link to a page about setting color palettes to be used in addition.

Or, they might list an alternative technique that might be used if a certain assumption fails ("This technique requires continuous variables. So if your data is discrete, use this other method.").

Implementations

Implementations contains multiple subsections, one for each statistical software environment/programming language that the technique can be implemented in.

  • Implementations should be listed in alphabetical order of software/language. eViews, then Python, then R, then SAS, then Stata, etc.
  • For each language, include well-commented and as-brief-as-reasonably-possible example code that provides an example of performing the technique. Readers should be able to copy the code and have it run the technique from beginning to end, including steps like loading in data if necessary. See existing pages for examples.
  • If someone else on the internet has already written a clear, thorough, and general implementation example, then linking to it is perfectly fine! This includes StackOverflow/StackExchange answers, which you can link to using the share button. Extremely long demonstrations for super-complex methods may be better left as links only (perhaps with a tiny example pulled out and put on LOST). If the example is short enough, though, including the example directly in the LOST page is preferable, with link attribution of the source, so readers don't have to go elsewhere.
  • Avoid creating a long list of examples showing every variant or optional setting of the technique. Instead, focus on one main example, with variants included only if they are especially important. If you like, you can mention in comments additional useful options/settings the reader might want to look into and what they do.
  • If the technique requires that a package or library be installed, include the code for installing the package in a comment (or if you are using a language where libraries cannot be installed inside the code, include a comment directing the user to install the library).
  • If a given language has multiple ways of performing the same technique, ideally report only one "best" method, whatever that might be. If other methods are only different in trivial ways, then you can describe them as being alternatives, but avoid providing examples for them. If other methods are different in important ways, then include an example for each, with text explanations of what is different about them. If two contributors seriously disagree about which way is best, then they're probably different in some meaningful way so you can include both as long as you can explain what that difference is.
  • It is fine to add implementations for software that only has a graphical interface rather than code (such as Excel) using screenshots. Be sure to keep images well-cropped and small so they don't crowd the page. If your graphical instructions are necessarily very long, consider posting them as a blog post somewhere and just put a link to that post in Implementations.

Images

Images can be added to Implementation sections if relevant, for example if you're working with GUI-only software, or demonstrating the output of a data visualization technique.

How can you add these images? You can upload the images somewhere on the internet that allows image linking, and include the image in your instructions. Or, ideally, if you know how to use GitHub, you can issue a Git Pull Request to upload the images to the LOST/Pictures/NameofPage folder, and link to the images there. Alternately, post in Issues asking for collaborator status so you can upload directly without doing a Pull Request.

Please be sure to add alt text to images for sight-impaired users.

Data

Ideally, the same data set will be uploaded to LOST directly in a format accessible by many languages (like CSV) in the Data/name-of-your-page/ folder, and then that data can be used for implementation in all languages on the page. This is not required, but is encouraged.

How can you upload data? You can use a Git Pull Request to upload a data set. Alternately, post in Issues asking for collaborator status so you can upload directly without doing a Pull Request.

FREQUENTLY ASKED QUESTIONS

  • What techniques are important enough to be their own page? This is a little subjective, but if you're writing about X, which is a minor option/variant of Y, then you can just include it on the Y page. If X is a different technique or a variant of Y that is used in different circumstances or produces meaningfully different output, then give X its own page.
  • How should I title my page? The filename for a page is a little restricted - it can't be too long, and it doesn't allow special characters like / or (). So pick a single, concise description of the technique you're talking about. You can be more descriptive in the in-page title (the title on the first line with the H1/# heading), and when you include your page on one of the Category pages. So Ordinary Least Squares might be the filename, and Ordinary Least Squares (Linear Regression) might be the H1 heading and how you describe it on the Estimation page.
  • What languages can I include in Implementations? Any language is valid as long as it's something people actually do statistical analysis in. Don't include something just because you can (I mean, you can technically do OLS in assembly but is that useful for anyone?), but because you think someone will find it useful.
  • Should I include the output of my code? For data visualization, yes! Just keep the images relatively small so they don't crowd the page. See the Implementations section above for how to add images. If your output is not visual, there's probably no need to include output unless you think that it is especially important for some technique.
  • How can I discuss what I'm doing with other contributors? GitHub Wiki, unlike Wikipedia, does not have Talk pages for contributors to discuss changes to a page. Instead, head to the Issues page and find (or post) a thread with the title of the page you're talking about.
  • How can I [add an image/link to another LOST page/add an external link/bold text] in the LOST wiki? See the Guide to Editing Wiki Content.
  • I want to contribute but I do not like all the rules and structure on this page. I don't even want my FAQ entry to be a question. Just let me write what I want. If you have valuable knowledge about statistical techniques to share with people and are able to explain things clearly, I don't want to stop you. So go for it. Maybe post something in Issues when you're done and perhaps someone else will help make your page more consistent with the rest of the Wiki. I mean, it would be nicer if you did that yourself, but hey, we all have different strengths, right?

About

The Library of Statistical Techniques: Instructions for Performing Statistics THIS REPO IS MOVING TO https://github.com/LOST-STATS/LOST-STATS.github.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages