HALLTOOL - A Stata Toolbox

HALLTOOL - A Stata Toolbox

Xinya HAO (Hall)

cov

Introduction

halltool is a Stata package that provides a set of tools for data analysis and visualization developed by Xinya HAO (Hall).

Installation

You can view the source codes from GitHub.

You can install halltool using github command in Stata.

1
2
3
4
5
6
7
* Install github
net install github, from("https://haghish.github.io/github/")

* Install halltool from github
github install LissHall/halltool
help halltool
help rm2

Command List

  1. whichdep
    • Install and update all specified ssc and net packages at once.
    • Add this command at the beginning of the do file to avoid errors due to uninstalled dependencies after sharing the do file.
  2. xpctile
    • Calculate the percentile of a given value in a variable.
  3. rm2
    • Enhanced version of rm/erase command.
    • Delete multiple files and delete files by file types in one command.
    • Avoid errors due to file not found.
  4. gradd_ab
    • Add asterisk brackets to a graph.

bar

Origional bar plot (left) —> After gradd_ab

  1. csv2dta
    • Transform all the .csv in a folder to .dta in one command.
  2. frmstr
    • Format long string variables in one command.
  3. appdtas
    • Append all the .dta in a folder to one .dta file.

Other resources

  • colorpalette_hallshue.ado
    • A collection of color palettes for Stata.

hues

  • scheme-hall.scheme
    • A customized scheme file for Stata.
    • A _gen_scheme_egs.do file is provided for generating some example graphs using the scheme file.

eg1

eg2

eg3

eg4

eg5

eg6

Comments
On this page
HALLTOOL - A Stata Toolbox