Giter VIP home page Giter VIP logo

stata-misc's Introduction

Miscellaneous Stata commands

Production-ready commands:

  • doa: "abbreviated do". Instead of typing do 1_import_data you can type doa 1 (as long as it's unambiguous)
  • mise_en_place: create the folder structure for a new project
  • kosi: shorthand for keep order sort isid (details here)
  • hshell: hidden shell, so you can run shell commands on Windows without the annoying popups (requires the parallel package)
  • mata_filefilter: alternative to filefilter implemented in Mata. Started as a workaround to an odd bug in filefilter, but might be extended further
  • bitfield: niche program; if you have data by i,j (for #j small), you sometimes want to collapse by i and add variables has_j for each level of j. This does so in a memory-efficient way, by compressing the dummies into "bitfields"
  • pick_ticks: alternative rule for selecting ticks for a plot axis

Beta commands:

  • fast_destring: faster alternative to destring. Works well but only a few options and might change.

Experimental commands:

  • block: experiment on how to use the undocumented _request2 option
  • parallel_map: (undocumented) distribute tasks on multiple instances of Stata; based on -parallel-

Installation

loc packages doa mise_en_place kosi hshell mata_filefilter bitfield pick_ticks fast_destring parallel_map
loc location "https://github.com/sergiocorreia/stata-misc/raw/master/src"

foreach package of local packages {
	cap ado uninstall `package'
	net install `package', from(`location')
}

Local installation

loc packages doa mise_en_place kosi hshell mata_filefilter bitfield pick_ticks fast_destring parallel_map
loc location "C:\Git\stata-misc\src"

foreach package of local packages {
	cap ado uninstall `package'
	net install `package', from(`location')
}

Extra install do-files

  • install_all.do
  • The dependencies is useful if you are behind a firewall that blocks https but allows wget (as some network Linux servers do).

stata-misc's People

Contributors

sergiocorreia avatar

Stargazers

Omer Sarigul avatar Andrew Gonzalez avatar Austin Moss avatar Leo avatar Kevin Perez Garcia avatar AM avatar Rony Rodrigo Maximiliano Rodriguez Ramirez avatar Franklin Qian avatar  avatar Markus Schaffner avatar Nick Guenther avatar

Watchers

 avatar James Cloos avatar Franklin Qian avatar  avatar

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.